Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Android ICS address bar jumps ( and display while line ) during slide transition #3969

Closed
JasperCCS opened this Issue Apr 5, 2012 · 2 comments

Comments

Projects
None yet
3 participants

This bug was observed using ASUS 4.0 tablet. Not reproducible on Lenovo Thinkpad 3.1

Same result in my JQM app as well as on demo page:

Steps:

  1. go to the browser and open http://jquerymobile.com/demos/1.1.0-rc.1/docs/pages/page-transitions.html
  2. Make sure the address bar stays during transition. ( the 4.0 tablet tends to hide the address bar during transition. to make it stay, click on tab and show the address bar, then select the "turn" or "pop" [dialog] couple of times )
  3. select "slide" [page]
  4. on the popup, hit "Take me back"
    repeater 4 and 5 couple of times

On the 4.0 tablet browser , while line(s) flashing between the address bar and the content area. The size of the white area varies. but it is very distracting.

The 3.1 android tablet doesn't have the problem. Nor iOS and playbook


There is some discussion about hiding address bar. But this issue seems to be discrepancy between android 4.0 and under.

removing the window.scrollTo( 0, 0); solves the problem. Alternatively the transition silentscroll should apply to iOS only? or there will be a flat in future to turn on/off?

// Scroll page vertically: scroll to 0 to hide iOS address bar, or pass a Y value
silentScroll: function( ypos ) {
if ( $.type( ypos ) !== "number" ) {
ypos = $.mobile.defaultHomeScroll;
}

        // prevent scrollstart and scrollstop events
        $.event.special.scrollstart.enabled = false;

        setTimeout(function() {
            window.scrollTo( 0, ypos );
            $( document ).trigger( "silentscroll", { x: 0, y: ypos });
        }, 20 );

        setTimeout(function() {
            $.event.special.scrollstart.enabled = true;
        }, 150 );
    },
Contributor

ldeluca commented Oct 24, 2014

@JasperCCS I haven't seen any activity on this issue in over 2 years. We're in the process of cleaning up old issues. Can you confirm whether or not this is still an issue with the latest jQM?

Probably not an issue anymore. Please close.

@JasperCCS JasperCCS closed this Oct 28, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment