I used Dom elements for input text. It’s working fine in desktop/android but not in iPhone. When typing in iPhone, It is pushing the screen upward for showing the keyboard and after finishing the type, the screen remains the same, top side of the screen is also remains out of scope and space of keyboard left blank!
My code for input -
var input1 = this.add.dom(config.width/2, config.height/2 - 100).createFromCache('inputForm').setDepth(3);
var input2 = this.add.dom(config.width/2, config.height/2 + 100).createFromCache('inputForm').setDepth(3);
var name1 = input1.getChildByName('nameField');
var name2 = input2.getChildByName('nameField');
I also tried this after input but it’s still the same.
this.game.scale.refresh();
this.game.scale.updateBounds();
this.game.scale.updateOrientation();
this.game.scale.updateScale();
this.game.scale.updateCenter();
Screenshot in the time of typing and after typing-
Do you have any idea how the screen can be fit again?
Thanks in advance.