Skip to content

Commit

Permalink
Don't forget that we have padding now
Browse files Browse the repository at this point in the history
  • Loading branch information
andydotxyz committed Feb 21, 2021
1 parent ad14efa commit ec32c77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion widget/entry_internal_test.go
Expand Up @@ -291,7 +291,7 @@ func TestEntry_TabSelection(t *testing.T) {
}

func getClickPosition(str string, row int) *fyne.PointEvent {
x := fyne.MeasureText(str, theme.TextSize(), fyne.TextStyle{}).Width
x := fyne.MeasureText(str, theme.TextSize(), fyne.TextStyle{}).Width + theme.Padding()

rowHeight := fyne.MeasureText("M", theme.TextSize(), fyne.TextStyle{}).Height
y := float32(row)*rowHeight + rowHeight/2
Expand Down

0 comments on commit ec32c77

Please sign in to comment.