# Blank Space after using Dom Input in iPhone

**URL:** <https://phaser.discourse.group/t/blank-space-after-using-dom-input-in-iphone/3191>\
**Category:** Phaser 3\
**Created:** [July 22, 2019, 6:50am UTC](https://phaser.discourse.group/t/blank-space-after-using-dom-input-in-iphone/3191 "2019-07-22T06:50:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sazzadh](https://yyz2.discourse-cdn.com/free1/user_avatar/phaser.discourse.group/sazzadh/32/1767_2.png) [@sazzadh](https://phaser.discourse.group/u/sazzadh)\
**Post date:** [July 22, 2019, 6:50am UTC](https://phaser.discourse.group/t/blank-space-after-using-dom-input-in-iphone/3191/1 "2019-07-22T06:50:19Z")

</div>

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-

 ![prob%201](https://global.discourse-cdn.com/free1/uploads/phaser1/original/2X/1/151490c5c7c3c3281b9f3d393f20c9bb77795b69.png) ![prob%202](https://global.discourse-cdn.com/free1/uploads/phaser1/original/2X/d/da53b4883003c94fda26bf499bb737ccdc52f9bf.png)

Do you have any idea how the screen can be fit again?

Thanks in advance.
