Hello all,
Me again. Further to my post on the
iOS editbox bug, here's another one. This happens on Windows, iOS and Android.
Here's some code which replicates the problem:
Eb1 = createeditbox()
seteditboxposition(Eb1,100,200)
seteditboxsize(Eb1,400,40)
seteditboxtextsize(Eb1,45)
seteditboxtext(Eb1,"123456789")
seteditboxfocus(Eb1,1)
seteditboxcursorposition(Eb1,3)
AddVirtualButton(1,100,100,100)
AddVirtualButton(2,250,100,100)
do
if GetVirtualButtonPressed(1)
SetEditBoxText(Eb1,"123456789a123456789b123456789c123456789d")
endif
if GetVirtualButtonPressed(2)
SetEditBoxText(Eb1,"123456789")
endif
sync()
loop
The problem is this. When the editbox is displaying long text, it must scroll to the end of the text to show the cursor. When the editbox's text is then changed programatically, the edit box does not reset its scroll position to show all of the shorter text.