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

Can't use panel without page widget #5996

Closed
jzaefferer opened this issue May 12, 2013 · 2 comments
Closed

Can't use panel without page widget #5996

jzaefferer opened this issue May 12, 2013 · 2 comments

Comments

@jzaefferer
Copy link
Contributor

Trying to use the panel widget without pages fails since panel depends on a parent [data-role='page'] to be present, and expects it to have a mobilePage data object with an options object attached. All the access for that just assume those exist, instead of checking if the page element is actually there.

For now I'm working around this by adding a <div data-role="page"> and making it a fake widget:

$("div[data-role='page']").data("mobilePage", {
    options: {}
})

To add insult to injury, panel ends up adding a class of ui-body-c to that page element. I have no idea why it does that, but I don't want that to happen.

@ghost ghost assigned arschmitz May 13, 2013
@arschmitz
Copy link
Contributor

@jzaefferer working on this is branch panels they are currently functional outside of pages but need to tweak some css and update a few more things.

@jaspermdegroot
Copy link
Contributor

There was already a ticket for this. Closing as duplicate of #5741.

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

No branches or pull requests

3 participants