# ScaleManager RESIZE and iOS Safari action bar

**URL:** <https://phaser.discourse.group/t/scalemanager-resize-and-ios-safari-action-bar/1293>\
**Category:** Phaser 3\
**Created:** [February 19, 2019, 12:11am UTC](https://phaser.discourse.group/t/scalemanager-resize-and-ios-safari-action-bar/1293 "2019-02-19T00:11:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sky-coding](https://avatars.discourse-cdn.com/v4/letter/s/b3f665/32.png) [@sky-coding](https://phaser.discourse.group/u/sky-coding)\
**Post date:** [February 19, 2019, 12:11am UTC](https://phaser.discourse.group/t/scalemanager-resize-and-ios-safari-action-bar/1293/1 "2019-02-19T00:11:46Z")

</div>

iOS Safari has an action bar that overlays the bottom of the browser window. It appears that the ScaleManager is not respecting this space, even though `window.innerHeight` correctly excludes the 75px.

In the screenshot below you can see via the debug text that the ScaleManager is reporting 628px height, while `window.innerHeight` reports 553px.

I am manually positioning a virtual joystick using `window.innerHeight` instead of the ScaleManager’s reported height to avoid the action bar obscuring the joystick. However, because the ScaleManager is also handling the resize of my canvas via scale mode `Phaser.Scale.RESIZE`, there is 75px of game world being rendered below the action bar that the user cannot see.

Is this a bug or is the ScaleManager intended to ignore the action bar (and if so, why)?

 ![Image-1](https://global.discourse-cdn.com/free1/uploads/phaser1/original/1X/b4135157ede9e3e610025b2f6c2e899ffb6e11ed.jpeg)

```
this.scale.on(Phaser.Scale.Events.RESIZE, (gameSize: Phaser.Structs.Size) => {
    debugText.setText(
        'window.innerHeight: ' + window.innerHeight + '\r\n' +
        'gameSize.height: ' + gameSize.height + '\r\n' +
        'this.scale.gameSize.height: ' + this.scale.gameSize.height
    );
});
```

---

<div class="post-metadata">

**Author:** ![William\_Soeparjo](https://yyz2.discourse-cdn.com/free1/user_avatar/phaser.discourse.group/william_soeparjo/32/1406_2.png) [@William\_Soeparjo](https://phaser.discourse.group/u/William_Soeparjo)\
**Post date:** [June 19, 2021, 7:01pm UTC](https://phaser.discourse.group/t/scalemanager-resize-and-ios-safari-action-bar/1293/2 "2021-06-19T19:01:46Z")

</div>

Bump, have same issues
