Skip to content

Commit

Permalink
Merge pull request #1988 from fpabl0/fix/1983
Browse files Browse the repository at this point in the history
Do not append entryContentRenderer's objects in the selection slice, fixes #1983
  • Loading branch information
Jacalz committed Feb 21, 2021
2 parents c7d570a + fa6812e commit 78b4eaf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion widget/entry.go
Expand Up @@ -1296,7 +1296,9 @@ func (r *entryContentRenderer) Objects() []fyne.CanvasObject {
defer r.content.entry.propertyLock.RUnlock()
// Objects are generated dynamically force selection rectangles to appear underneath the text
if r.content.entry.selecting {
return append(r.selection, r.objects...)
objs := make([]fyne.CanvasObject, 0, len(r.selection)+len(r.objects))
objs = append(objs, r.selection...)
return append(objs, r.objects...)
}
return r.objects
}
Expand Down

0 comments on commit 78b4eaf

Please sign in to comment.