You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fullscreen prevents address bar from collapsing in ios safari #1179
Generally, having an absolute positioned element being the scrolling container causes these problems. The body needs to be part of the scrolling flow, for iOS to 'get it'
I'm not sure if I should open a new issue for this because this is exactly the behaviour I am experiencing as well. Following the Material Guide here I created my sidenav as described, only with a router outlet in the main content div, but this should not matter
The issue I'm having is that this fix for a fullscreen sidenav (since we should not use the fullscreen attribute! #759) is indeed working but on mobile browsers the css prevents the address bar from shrinking - as shown in the .gif.
I think this likely has something to do with .mat-drawer-content having overflow:auto, so the scrolling is happening within the div instead of the page as a whole. This also leads to some awkward scrolling behavior when we try to add a scrollable div within the drawer-content.
Activity
pascalwhoop commentedon Mar 21, 2017
I created a screen recording to show what is described. I hope that helps
https://media.giphy.com/media/3ohzdCMs2cudR4hHVK/giphy.gif
Generally, having an absolute positioned element being the scrolling container causes these problems. The body needs to be part of the scrolling flow, for iOS to 'get it'
jelbourn commentedon Apr 28, 2017
Believe this is obsolete as we've eliminated this API.
simerlec commentedon May 8, 2017
I'm not sure if I should open a new issue for this because this is exactly the behaviour I am experiencing as well. Following the Material Guide here I created my sidenav as described, only with a router outlet in the main content div, but this should not matter
The issue I'm having is that this fix for a fullscreen sidenav (since we should not use the fullscreen attribute! #759) is indeed working but on mobile browsers the css prevents the address bar from shrinking - as shown in the .gif.
Can you provide a solution for this problem?
Thanks
mmalerba commentedon May 8, 2017
@simerlec Yeah this is still an issue with the recommended approach. It's high on my list of things to work on.
kiwikern commentedon Jul 17, 2017
angular.io uses the sidenav component, but still hides the address bar. Scrolling is not done within the sidenav-content-div but with the whole document. It is probably related to setting
height: auto !important;, but I wasn't able to fully reproduce it.https://github.com/angular/angular/blob/7caa0a8aa46aae05102e82ba68b268c2c392f856/aio/src/app/app.component.html
mackelito commentedon Sep 1, 2017
Is there any updates on this issue?
zweinz commentedon Sep 14, 2017
I think this likely has something to do with .mat-drawer-content having overflow:auto, so the scrolling is happening within the div instead of the page as a whole. This also leads to some awkward scrolling behavior when we try to add a scrollable div within the drawer-content.
angular-automatic-lock-bot commentedon Sep 7, 2019
This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.