Skip to content
This repository has been archived by the owner on Oct 8, 2021. It is now read-only.

Fixed header problem after scrolling content on iOS and Android #4337

Closed
H2Os opened this issue May 11, 2012 · 5 comments
Closed

Fixed header problem after scrolling content on iOS and Android #4337

H2Os opened this issue May 11, 2012 · 5 comments

Comments

@H2Os
Copy link

H2Os commented May 11, 2012

Hi

I don't know if this is related to #4032 but I am experiencing a similar problem on iOS 5.1.1 (iPad and iPhone) when using .animate to scroll the content.

Test page here: http://actisst.biz/test.html

The '+' button in the top-right corner is programmed to toggle between scroll down and scroll up on each successive press. When the page loads, all is fine and the '+' button scrolls the page down. From then on, the buttons in the toolbar and footer do not work until the page in manually scrolled, even a tiny amount, by the user. After the content had been moved by the user, all the buttons work again.

I have tried adding $.mobile.fixedToolbars.hide() and .show() around the .animate and this solved the problem for JQM 1.0.1, but isn't available on 1.1.0 (even though the docs say it is - but that's a separate issue).

I've also tried calling $.mobile.activePage.trigger('updatelayout') but that had no effect at all.

Works as expected on Windows 7 using IE9, Chrome, FF, Safari and Opera; fails on Samsung GT-I9000 Android 2.6.32.9; fails on iPad and iPhone with iOS 5.1.1.

@Magnus-G
Copy link

Hi, Just curious; did you find a solution to this issue? Thanks

@arschmitz
Copy link
Contributor

I set up a test case for this at http://jsfiddle.net/arschmitz/PygTy/3/show/ this appears to work fine in this simple test case. I do not believe this is a bug.

@arschmitz
Copy link
Contributor

setup second test case at http://jsfiddle.net/arschmitz/Lt38R/40/ tested on htc incredible android 2.3 cant replicate

@tpalomo
Copy link

tpalomo commented Oct 16, 2012

Gabriel tested this on an ipad with ios6 on landscape view and replicated the bug.

@arschmitz
Copy link
Contributor

checked this out with @tpalomo this cannot actually be replicated with ipad on ios6 however it CAN be on ipad ios5.1.1 but not on iphone ios5.1.1 this seems to be sepcific to ipad on ios 5.1.1

arschmitz added a commit to arschmitz/jquery-mobile that referenced this issue Oct 22, 2012
… after scroll and repositioning logic. Fixed: jquery-archive#4337 - Fixed header problem after scrolling content on iOS and Android, jquery-archive#4113 - Header and footer change their position after keyboard popup - iOS, jquery-archive#4724 - Moving through form in Mobile Safari with "Next" and "Previous" system controls causes fixed position, tap-toggle false Header to reveal itself
arschmitz added a commit to arschmitz/jquery-mobile that referenced this issue Nov 1, 2012
…jquery-archive#3748 Android 2.x: Page transitions broken when fixed toolbars used

jquery-archive#4113 Header and footer change their position after keyboard popup - iOS
jquery-archive#4250 Persistent footer instability in v1.1 with long select lists in Android 2.3.3
jquery-archive#4259 Fixed toolbars change position when navigating between tabs.
jquery-archive#4337 Fixed header problem after scrolling content on iOS and Android
#jquery-archive#4410 Footer navbar moves up when clicking on a textbox in an Android environment
arschmitz added a commit to arschmitz/jquery-mobile that referenced this issue Nov 8, 2012
jquery-archive#3748 Android 2.x: Page transitions broken when fixed toolbars used
jquery-archive#4113 Header and footer change their position after keyboard popup - iOS
jquery-archive#4250 Persistent footer instability in v1.1 with long select lists in Android 2.3.3
jquery-archive#4337 Fixed header problem after scrolling content on iOS and Android
#jquery-archive#4410 Footer navbar moves up when clicking on a textbox in an Android environment
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants