Issue(tabs): Spacing problem with 5 tabs on iOS
See original GitHub issueShort description of the problem:
When adding more than 4 tabs on iOS the spacing of tabs goes over the screen.
What behavior are you expecting?
On iOS, the maximum number of tabs that can be added are 5. At the very least, 5 tabs should fix on an iOS device.
iOS (Ionic 2 with 5 tabs)
iOS (Native with 5 tabs)
Android
Which Ionic Version? 2.x
Run ionic info
from terminal/cmd prompt: (paste output below)
Cordova CLI: 6.1.1
Ionic Framework Version: 2.0.0-beta.3
Ionic CLI Version: 2.0.0-beta.24
Ionic App Lib Version: 2.0.0-beta.14
OS:
Node Version: v5.7.0
Issue Analytics
- State:
- Created 7 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
Spacing problem with 5 tabs on iOS · Issue #6056 - GitHub
Short description of the problem: When adding more than 4 tabs on iOS the spacing of tabs goes over the screen.
Read more >Ionic iOS tabs page can bounce white space on top and ...
When you scroll down it shows the white background, when you scroll up the white space will move on top of the tabs...
Read more >Setting Tabs Correctly - Apple Support Communities
The ONLY way to guarantee that five space will equal .5 inches in your document is to use a monospaced or fixed width...
Read more >How To Deal With That Annoying 500 Tab Limit in Safari
How To Deal With That Annoying 500 Tab Limit in Safari · 1. Close Tabs One By One · 2. Go Into Private...
Read more >Using UITabBarAppearance for Tab Bar changes in iOS 13
I've noticed issues in particular with flaky tab bar appearance on iPad within UISplitViewController classes and some other scenarios in iOS ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Just adding my 2 cents. Was able to replicate this problem with 5 tabs on device iPhone 5s and also on iPhone 5s simulator. Seems the .tab-button style (in app.ios.css) has a max-width: 240px; causing this behavior. Removing this max-width for iPhone 5s seems to solve the problem. The max-width was added probably with a reason (what is the reason?) so this is not a fix. Should be investigated further, but could point you in the (hopefully) right direction.
@dylanvdmerwe I’m not seeing the problem resolved by removing the
max-width
, only by removing themin-width: 80px
. You should be able to set:In your
theme/app.ios.scss
file as a temporary work around until I can look into this more and make sure it doesn’t break anything by removing it. 😄