Skip to content

bug: ios scrollbar appears in middle of the screen when using ion-menu #22379

@askilondz

Description

@askilondz

Bug Report

Ionic version:

[x] 4.x
[x] 5.x

Capacitor
[x] 2.4.x

Angular
9.1.x

Current behavior:
This is a very specific use case. On iOS devices...if the ion-menu type is push and if a page has an ion-content but no ion-header and you navigate away from it and then back to it...the vertical scrollbar displays in the middle of the page. I've noticed this only on iOS across many iOS devices and different apps I've built where a page doesn't have an ion-header/ion-toolbar. If I change the side menu type to reveal or overlay then the issue is resolved. Something about the push effect causes the scrollbar to persist in the middle of the screen when coming to the page after the side menu has been opened. Strangely...if I include an ion-header/toolbar then this scrollbar issue goes away.

kgl797to2oiu3puyl-80sljee44

Steps To Reproduce
With <ion-menu type="push">, create a page that has no ion-header and has content to scroll...then go to another page from the menu then go back to the original page. The push effect of the menu sets the scroll bar in the middle of the screen on iOS.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug: externalBugs in non-Ionic software that impact Ionic apps (I.e. WebKit, Angular, Android etc)type: buga confirmed bug report

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions