garrynewman / GWEN

Abandoned: GWEN - GUI Without Extravagant Nonsense.
MIT License
429 stars 102 forks source link

Fix for TextBoxes not moving the text when caret needs to move #28

Closed DeeKayHT closed 11 years ago

DeeKayHT commented 11 years ago

Bug

If the caret moves out of the TextBox's range or adding characters that exceed the textbox's visible space, the text wouldn't move.

Fix

Adds empty PostLayout() in TextBox class to avoid Label's PostLayout from being called. Otherwise the text's position will always be set to a fixed position defined by the alignment.

Misc changes