djett41 / ionic-scroll-sista

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

Initial page content length affects shrinkage #19

Open WhatsThatItsPat opened 9 years ago

WhatsThatItsPat commented 9 years ago

Hello again,

Go to the Codepen and shrinkage works for Page A. Navigate to Page B and it still works (it breaks on Page C, but that's another issue).

Now go into AAACtrl and set bacon = false. This will make the content of the page much shorter than the view. Shrinkage doesn't work here but that doesn't really matter because the page isn't tall enough for there to be a reason for it (although I'd lean toward shrinkage still working regardless of content height).

Now navigate to Page B. Shrinkage is still broken even though Page B has plenty of content to scroll. It appears that if Scroll Sista is initialized without enough content the first time around, it doesn't reconfigure itself when getting to another view with content that does overflow past the view size.