You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ui.List renders all elements inside the list (currently just instances of ui.Textbox but there's no reason they couldn't be other things) that are even partially visible inside the list's designated area. This means that at the top and bottom of the list, multi-line elements that should only be partially be visible render all their lines, spilling over the edge.
To fix: need to think of some way of partially rendering a textbox, and call it here:
This is where it decides whether an element is visible. Not hard to filter out partially visible ones and invoke the special ui.Textbox.RenderPartial() or whatever.
Sincerely,
Lazy Past Ben
PS. Sorry for not doing this properly when I fanagled all this together in the first place. I would have done it but I was making a space ship game and wanted to get to the fun part.
The text was updated successfully, but these errors were encountered:
Dear Future Ben,
ui.List renders all elements inside the list (currently just instances of ui.Textbox but there's no reason they couldn't be other things) that are even partially visible inside the list's designated area. This means that at the top and bottom of the list, multi-line elements that should only be partially be visible render all their lines, spilling over the edge.
To fix: need to think of some way of partially rendering a textbox, and call it here:
https://github.com/BenNicholls/burl/blob/master/ui/list.go#L175
This is where it decides whether an element is visible. Not hard to filter out partially visible ones and invoke the special ui.Textbox.RenderPartial() or whatever.
Sincerely,
Lazy Past Ben
PS. Sorry for not doing this properly when I fanagled all this together in the first place. I would have done it but I was making a space ship game and wanted to get to the fun part.
The text was updated successfully, but these errors were encountered: