When WidgetEditText is put inside a vbox and the WidgetEditText's text crosses the vbox's bottom boundary, the rendering of the text stops.
Below is the complete code to reproduce the issue.
Gui gui;
WidgetVBox vbox;
WidgetButton button;
WidgetEditText text;
int init()
{
gui = engine.getGui();
vbox = new WidgetVBox(gui);
vbox.setBackground(1);
vbox.setWidth( 300 );
vbox.setHeight( 200 );
gui.addChild(vbox,GUI_ALIGN_OVERLAP | GUI_ALIGN_CENTER);
text = new WidgetEditText(gui, "WidgetEditText..." );
text.setPosition( 150, 0 );
vbox.addChild(text, GUI_ALIGN_OVERLAP | GUI_ALIGN_FIXED );
button = new WidgetButton(gui, "Drag Me" );
button.setCallback( GUI_PRESSED, "OnPressed" );
button.setCallback( GUI_RELEASED, "OnReleased" );
vbox.addChild(button, GUI_ALIGN_OVERLAP | GUI_ALIGN_FIXED);
return 1;
}
void OnPressed()
{
text.setPosition( text.getPositionX() + gui.getMouseDX(), text.getPositionY() + gui.getMouseDY() );
}
int nCount = 0;
void OnReleased()
{
text.addLine( format( "%d", nCount ) );
nCount++;
}
int update()
{
return 1;
}
int shutdown()
{
return 1;
}