Repository navigation
Description
Bug Report
Ionic version:
[x] 5.x
Where?
In the Ionic 5 tabs example.
On the iOS theme this works.
On the MD theme it does not work.
Current behavior:
<app-explore-container> has a wrong y-position in the tab, which was initially loaded.
The <ion-content> has on reload of the current tab a wrong offset of --offset-bottom:0px;
Expected behavior:
The <app-explore-container> component should have the same y-position on every tab on the MD (Material Design) theme.
should have an offset of --offset-bottom:57px; on reload of the current tab, as the other tabs have, if you switch to some other tab.
Steps to reproduce:
Start a new Ionic 5 Tab Project and open Chrome with the Pixel 2 responsive emulator and switch between the tabs. The content position will change.
Ionic info:
Ionic:
ionic (Ionic CLI) : 4.10.2 (/usr/local/lib/node_modules/ionic)
Ionic Framework : @ionic/angular 5.0.7
@angular-devkit/build-angular : 0.803.26
@angular-devkit/schematics : 8.3.26
@angular/cli : 8.3.26
@ionic/angular-toolkit : 2.2.0
Cordova:
cordova (Cordova CLI) : 8.1.2 ([email protected])
Cordova Platforms : ios 5.1.1
Cordova Plugins : cordova-plugin-ionic-keyboard 2.2.0, cordova-plugin-ionic-webview 4.2.0, (and 4 other plugins)
System:
Android SDK Tools : 25.2.3 (/Users/stefanrein/Library/Android/sdk)
ios-sim : 8.0.2
NodeJS : v10.15.3 (/usr/local/bin/node)
npm : 6.14.3
OS : macOS
Xcode : Xcode 11.4 Build version 11E146
Example, when the Tab1 URL was initially loaded: http://localhost:4200/tabs/tab1

Activity
Cloud7050 commentedon Apr 27, 2020
Same issue here. https://postimg.cc/N975hbYg
ionitron-bot commentedon Apr 27, 2020
Thanks for the issue! This issue has been labeled as
needs reproduction. This label is added to issues that need a code reproduction.Please provide a reproduction with the minimum amount of code required to reproduce the issue. Without a reliable code reproduction, it is unlikely we will be able to resolve the issue, leading to it being closed.
For a guide on how to create a good reproduction, see our Contributing Guide.
StefanRein commentedon Apr 28, 2020
Reproduction
Please follow these steps to reproduce (from https://ionicframework.com/docs/intro/cli):
Edit:
Or clone following repository:
https://github.com/ionic-team/starters/tree/master/angular/official/tabs
Now on macOS Catalina it opens the latest Chrome Browser (Version 81.0.4044.129)
Open the Developer Tools (Alt + CMD + i)
Chrome: Toggle Device Toolbar (the Mobile / Tablet icon)
Select iPhone X and refresh the page (CMD + r)
Select Pixel 2 XL and refresh the page (CMD + r)
The content jumps like I showed in the screenshots above if you draw a horizontal line between the text.
Do you need further information?
I am happy to provide you more information.
moganarangan commentedon Jul 29, 2020
I did this -
ionic start my-app tabs --type=angularIonic serveBy default the tabs loads first having this offset issue.
The default opening tab have
--offset-bottom:0px;Other tabs have
--offset-bottom:56px;kevinboosten commentedon Sep 8, 2020
@liamdebeasi my guess is that these issues al relate to each other: #21351 #21940 #20614
taitdigital commentedon Sep 12, 2020
have come across this issue also, is there a temporary workaround?
other than
ion-content {
--offset-bottom: 57px !important;
}
1x2x3x4x commentedon Dec 29, 2020
This isssue is still happening and also fails under iOS.
ion-content { --offset-bottom: 50px !important; }eeschiavo commentedon May 25, 2022
I have the same problem. Is there any solution?
alexdabast commentedon Mar 23, 2023
To help for this bug you could call
window.dispatchEvent(new Event('appload'));in your first tab page event ionWillEnterView
liamdebeasi commentedon Sep 27, 2023
Hi everyone,
Here is a dev build with a proposed fix if anyone is interested in testing:
7.4.2-dev.11695831341.191bdf12Install Example:
fix(content): fullscreen offset is computed correctly with tab bar (#…
liamdebeasi commentedon Oct 4, 2023
Thanks for the issue. This has been resolved via #28245, and a fix will be available in an upcoming release of Ionic Framework.
fix(core): allow fullscreen scroll content to flow outside container …
ionitron-bot commentedon Nov 3, 2023
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.