Open Taylorsuk opened 9 years ago
@Taylorsuk I'm suspecting it has something to do with the way your ionic components are set up, especially the subheader inside of the nav-bar..
ion-nav-bar is supposed to be declared outside of your ion-view rather than inside. Then inside the ion-view is where you would only override the button or title directives rather than the actual ion-nav-bar.
Aside from that subheaders are also usually declared inside outside of the ion-nav-bar. When Ionic compiles your directives It's most likely moving your subheader outside of ion view and into the nav-bar section, which may be messing up the way the items are stacked and how scroll sista selects elements.
I would take a look at the ionic navigation docs and try reorganizing your layout http://ionicframework.com/docs/api/directive/ionNavView/
The hiding header is working perfectly however I lose approx 60px from the top of my
ion-content
when scrolling down.I am using the following at the top of my view.
This only occurs on the ios simulator and device - works ok in the browser. When inspecting element through the simulator you can see the calculated
top:
value change (losing60px
) as soon as I scroll down.