Skip to content

Commit

Permalink
Fix right align and center since adding multiline support
Browse files Browse the repository at this point in the history
  • Loading branch information
andydotxyz committed Oct 13, 2018
1 parent e30d4b0 commit c11ce7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion widget/label.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ func (l *labelRenderer) Layout(size fyne.Size) {
if len(l.texts) > 1 {
lineHeight = lineHeight / l.lines
}
lineSize := fyne.NewSize(size.Width, lineHeight)
lineSize := fyne.NewSize(size.Width-theme.Padding()*2, lineHeight)
for i := 0; i < l.lines; i++ {
text := l.texts[i]
text.Resize(lineSize)
Expand Down

0 comments on commit c11ce7a

Please sign in to comment.