diff options
Diffstat (limited to 'textlabel.go')
-rw-r--r-- | textlabel.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/textlabel.go b/textlabel.go index ab06ca69..ad05bd75 100644 --- a/textlabel.go +++ b/textlabel.go @@ -53,7 +53,7 @@ func (tl *TextLabel) MinSizeHint() Size { } func (tl *TextLabel) SizeHint() Size { - return tl.calculateTextSizeForWidth(tl.Width()) + return tl.calculateTextSizeForWidth(tl.WidthPixels()) } func (tl *TextLabel) HeightForWidth(width int) int { |