v1.2.0: fixed crashes caused by wndTextInput offsetting on init

This commit is contained in:
Evan Debenham 2022-03-16 14:23:54 -04:00
parent 155f7f1fe8
commit f6cfd516c7

View File

@ -131,7 +131,9 @@ public class WndTextInput extends Window {
@Override
public void offset(int xOffset, int yOffset) {
super.offset(xOffset, yOffset);
textBox.setRect(textBox.left(), textBox.top(), textBox.width(), textBox.height());
if (textBox != null){
textBox.setRect(textBox.left(), textBox.top(), textBox.width(), textBox.height());
}
}
public void onSelect(boolean positive, String text){ }