v1.2.0: fixed crashes caused by wndTextInput offsetting on init
This commit is contained in:
parent
155f7f1fe8
commit
f6cfd516c7
|
@ -131,7 +131,9 @@ public class WndTextInput extends Window {
|
||||||
@Override
|
@Override
|
||||||
public void offset(int xOffset, int yOffset) {
|
public void offset(int xOffset, int yOffset) {
|
||||||
super.offset(xOffset, 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){ }
|
public void onSelect(boolean positive, String text){ }
|
||||||
|
|
Loading…
Reference in New Issue
Block a user