This commit is contained in:
Anuken
2026-02-05 22:29:04 -05:00
parent dced8834b6
commit 9f21a98923
2 changed files with 3 additions and 2 deletions

View File

@@ -51,7 +51,8 @@ public class BaseDialog extends Dialog{
protected void onResize(Runnable run){
Events.on(ResizeEvent.class, event -> {
if(isShown() && Core.scene.getDialog() == this){
//ignore resize events while the Android text input dialog is shown - this does lead to buggy layout when rotated, but it's better than clearing the text. I don't know of a better solution to the problem
if(isShown() && Core.scene.getDialog() == this && !Core.input.isShowingTextInput()){
run.run();
updateScrollFocus();
}