luugiathuy / GTScrollNavigationBar

A scrollable UINavigationBar that follows a UIScrollView
BSD 3-Clause "New" or "Revised" License
552 stars 85 forks source link

Question RE possible issue #32

Closed andyfitter closed 9 years ago

andyfitter commented 9 years ago

Why do you check for (self.bounds.size.height * 2) at line 114 instead of just self.bounds.size.height? This seems to cause me issues on tableviews that are just slightly bigger then the screen, they start to scroll, and it starts to hide the nav bar, but the frame of the scrollview gets bigger (in setFrame) and the test then starts failing ,and my nav bar remains in a half hidden state until it is reset.

If I take out the multiply by two in the test it seems OK