djett41 / ionic-scroll-sista

An Ionic plugin that hides the header/tabs while scrolling
MIT License
125 stars 38 forks source link

The header doesn't show in the new page when jump from the page which the header is hided #10

Open TonyLuo opened 9 years ago

TonyLuo commented 9 years ago

In the page which header is hided, click the item , go to another new page, the new page header is also hided. Is any way to show the header in the new page ?

<ion-item collection-repeat="item in items" ui-sref="main.booking-detail({id: item.id})" >
        <p>{{item.text}}</p>
     </ion-item>
Sh1n1x commented 9 years ago

@TonyLuo I have the same problem, do you have fixed that ?

mixersoft commented 8 years ago

I had a similar problem, but only if you are using ion-side-menu

the code was measuring the wrong headerHeight = activeHeader.offsetHeight; I had to mod the code to get the right one.

            // mlin: fix scrollTop bug with ionSideMenu, @line:81
            var sideMenu = body.querySelector('ion-side-menu-content');
            var parent = sideMenu ? sideMenu : body;
            cachedHeader = parent.querySelector('[nav-bar="cached"] .bar-header');
            activeHeader = parent.querySelector('[nav-bar="active"] .bar-header');