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

Panel reloads content div on first open #6885

Closed
Palestinian opened this issue Jan 4, 2014 · 0 comments
Closed

Panel reloads content div on first open #6885

Palestinian opened this issue Jan 4, 2014 · 0 comments

Comments

@Palestinian
Copy link

In jQuery Mobile 1.3.2, content div is wrapped in ui-panel-wrapper div upon initializing panel widget. However, on jQuery Mobile 1.4, content div is wrapped in that div once a panel is opened for the first time, whether the panel is internal or external.

Wrapping content div in ui-panel-wrapper div causes to reload data within content div, especially iframe. Moreover, it occurs when using other libraries such as Handlebars.js, where it hides content div completely.

This behavior is obvious on data-display push and reveal, but not overlay.

Edit: This behavior affects third party plugins too.

To fix this, user should wrap content div in ui-panel-wrapper statically.

Please check the demos below.

jQM 1.3.2: http://jsfiddle.net/Palestinian/W59es/
jQM 1.4: http://jsfiddle.net/Palestinian/6KGXX/

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant