-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Space between ActionBar and any layout inside TabView #6788
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@enwi apart from the emulator device version can you tell us on which is the used iOS version? |
@NickIliev The iOS version of the emulator is 12.1 (16B91). When I set the |
This issue still exists on IOS with flat set to true, problem disappears when set to false. |
This blocks upgrading to 5.x for us as well. We use a flat ActionBar in combination with tabbed navigation and this issue breaks our layout. |
Same problem applies to real devices - running iOS 12.1 on iPhone SE. |
Having same issue, also this is happening when having any layout inside UI Sidrawer and with a flat actionbar , you can see: #5855 (comment) |
@victorevox I will need some more information on this. Do you mean having any layout inside the main or the drawer content of the side drawer? In general, if you could provide some playground or sample it would be great. |
https://play.nativescript.org/?template=play-ng&id=sywM8A Here you go. Same problem here and on playground. Just switch flat: false for dissapearance of the spacing. |
@mfik I'm aware of this problem with the TabView nested flat action bar. It should be fixed with the PR above. I was asking @victorevox for an example with the drawer that he mentioned, because I can't reproduce it. I'm also asking, so that I can add tests for it. |
Hi @MartoYankov , here I've replicated the issue https://play.nativescript.org/?template=play-ng&id=ZyeGeF&v=3 , hope it got fixed too! :) |
Same issue happens to tab bar when setting translucent to false https://play.nativescript.org/?template=play-ng&id=ZyeGeF&v=4
|
@victorevox This issue is fixed with #6862 as well. It will be available in the 5.2 release. @blizmo Thanks for reporting this. I logged this as a separate issue here - #6891. |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Environment
│ nativescript-angular │ ~7.0.0 │
│ nativescript-localstorage │ ^2.0.0 │
│ nativescript-theme-core │ ~1.0.4 │
│ nativescript-ui-listview │ ^5.0.1 │
│ nativescript-ui-sidedrawer │ ^5.1.0 │
│ nativescript-websockets │ ^1.5.3 │
Describe the bug
On iPhone 6 simulator there is a space between any layout and the ActionBar, when the layout is inside a TabView. The space is part of the TabView itself, because changing its background color changes the color of the space. This does not affect any android devices. Possibly related to #3865?
Here is also a picture:

To Reproduce
Please see the example down below.
Expected behavior
There should be no space between the ActionBar and the TabView content.
Sample project
tab.component.tns.html
tab.component.tns.css
main.component.ios.html
The text was updated successfully, but these errors were encountered: