Skip to content

Commit

Permalink
Merge pull request #4187 from andydotxyz/fix/selectellipsis
Browse files Browse the repository at this point in the history
  • Loading branch information
andydotxyz authored Aug 23, 2023
2 parents 196dbdb + 2c82e90 commit d2475b9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion widget/select.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ func (s *Select) CreateRenderer() fyne.WidgetRenderer {
txtProv := NewRichTextWithText(s.Selected)
txtProv.inset = fyne.NewSize(theme.Padding(), theme.Padding())
txtProv.ExtendBaseWidget(txtProv)
txtProv.Truncation = fyne.TextTruncateClip
txtProv.Truncation = fyne.TextTruncateEllipsis
if s.disabled {
txtProv.Segments[0].(*TextSegment).Style.ColorName = theme.ColorNameDisabled
}
Expand Down
2 changes: 1 addition & 1 deletion widget/select_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ func TestSelect_ClipValue(t *testing.T) {

r2 := cache.Renderer(text)
assert.Equal(t, 1, len(r2.Objects()))
assert.Equal(t, "some t", r2.Objects()[0].(*canvas.Text).Text)
assert.Equal(t, "som…", r2.Objects()[0].(*canvas.Text).Text)
}

func TestSelect_Disable(t *testing.T) {
Expand Down

0 comments on commit d2475b9

Please sign in to comment.