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

Panel: no longer jump up on resize #7674

Closed

Conversation

shao1555
Copy link
Contributor

should not scroll to top in just resize window

Fixes #7572

should not scroll to top in just resize window

Fixes jquery-archive#7572
@gabrielschulhof
Copy link

Thanks for your contribution!

@shao1555
Copy link
Contributor Author

@gabrielschulhof thank you. how to make review request for this PR ?

@gabrielschulhof
Copy link

@shao1555 Sorry! I'll set up the flags.

@Ruffio
Copy link

Ruffio commented Oct 29, 2014

Will this also disable scroll to top when panel is shown?

@arschmitz
Copy link
Contributor

@shao1555 can you explain why you are changing the check to explicitly check for true rather then just a truthy value and how this reflects a resize vs a non resize?

@arschmitz
Copy link
Contributor

Im going to close this there has been no response to several questions in a month we can re open if the OP answers.

@gabrielschulhof
Copy link

@arschmitz, @borg4242 explains it in #7923: you must check strictly for true, because _positionPanel() is also a handler for the throttledresize event, so sometimes its first parameter, scrollToTop is the throttledresize event itself, which is truthy.

gabrielschulhof pushed a commit to gabrielschulhof/jquery-mobile that referenced this pull request Jan 19, 2015
should not scroll to top in just resize window

Fixes jquery-archivegh-7572
Closes jquery-archivegh-7674
kakul pushed a commit to kakul/jquery-mobile that referenced this pull request Apr 14, 2015
should not scroll to top in just resize window

Fixes jquery-archivegh-7572
Closes jquery-archivegh-7674
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
5 participants