Panel reloads content div on first open #6885
Description
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/