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
How to pushPage with tab-bar without losing the tab-bar / blink bug #384
Comments
Hi @argelius, i've searched around a bit and found out how to achieve this. <ons-page> inside my my "neighbor.html" (which is one of my tab-pages) and wrapped <ons-navigator var="inside"> around it. In my controller, instead of using the main navigator (with var appNavigator), I use inside.pushPage(); It just works, when my opening page has an But now, every 1-3 times, I have a very ugly blink bug. Do you have any quick workaround or am I'm doing something wrong? Just to mention, that my main Navigator is only present for just a second when I start the app.
To cut the long story short, I don't think that this blink-bug is caused trough the way I've created the inital Navigator, I guess there is something else playing bad with me. https://www.youtube.com/watch?v=In6PAyYCJNI&feature=youtu.be |
Thanks @hirbod , Is it possible for you to create a minimal example that reproduces the blink bug? |
This will be very hard I guess. There is a lot of logic and stuff related, JSON calls to the server etc. I don't know if this could help, but we could make an appointment, where you could connect to my Mac trough team viewer? |
But as I have this blink bug even somewhere else i'm quite sure it is related to ons-list. Cause in my other page which gets pushed even also without the second navigator, it blink. I'm trying to verify that and will update later. Merry Christmas by the way (if you celebrate) |
Hi @argelius, so I did some more investigations.
The bug only occurs with animation: slide. If I use animation: fade, it does not flicker, but thats not an option here. If I do this pushPage in my main navigator, I do not have this blink bug, the profile page just loads fine, but without the tab-bar... Maybe related with #301 (which was fixed and worked for me) and #210 and #228 |
Merry Christmas, @hirbod ! I'm Swedish so I celebrated Christmas yesterday. You celebrate on the 24th in Germany as well, right? I'll see if I can reproduce it. I'm a bit busy so maybe not today but in the coming days. |
Thanks for your response @argelius, Thanks for your effort. |
Hi @argelius, any update? |
Hi @hirbod, I had been tackling the same problem, although my program had only one ons-navigator. |
I forgot to say that you need to modify css of .tab-bar__content or some elements if you put any elements out of ons-tabbar. |
Could you share your CDs modifications with me? Thanks |
ons-toolbar (.navigation-bar) 's height is defined as 44px by default, so this will work. .tab-bar__content{ top: 44px; } Plus you may have to keep extra 20px height for iOS status bar area. .navigation-bar, .navigation-bar__item, .navigation-bar__left, .navigation-bar__right, .navigation-bar__center{ height: 64px; } |
Ah, this will be needed, too. .page{ top: 64px; } |
About page initialization, I have a solution. You can use angular's
|
Hi @hirbod, I think I finally found the cause. What caused the blink were nested |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions. |
Hi @argelius,
I don't know if it is a bug or maybe I did something wrong, but how could I actually keep the tab bar visible when I do a pushPage inside a tab-view.html?
This is for example my tab-bar.html page. I open this page also with a pushPage, but when I make a pushPage inside neighbor.html, it works, but will not be inside of that tab - instead, it will be over the tab-bar. What do I have to do? Is this expected?
The text was updated successfully, but these errors were encountered: