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

Panel reloads content div on first open #6885

Closed
@Palestinian

Description

@Palestinian

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/

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions