g3n / engine

Go 3D Game Engine (http://g3n.rocks)
https://discord.gg/NfaeVr8zDg
BSD 2-Clause "Simplified" License
2.74k stars 292 forks source link

Fix panic when edit control has zero specified width #291

Closed leylandski closed 1 year ago

leylandski commented 1 year ago

Use calculated width when setting text caret so dynamic layouts can be used to control size.

leylandski commented 1 year ago

Closed because there's actually more to this than I thought. Need to find a way to have the edit control sized by the layout and have it stay that way on mouseover.