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

Some ideas for the new panel widget in jqm 1.3.0 #5449

Closed
roman-e opened this issue Jan 15, 2013 · 2 comments
Closed

Some ideas for the new panel widget in jqm 1.3.0 #5449

roman-e opened this issue Jan 15, 2013 · 2 comments

Comments

@roman-e
Copy link

roman-e commented Jan 15, 2013

Hello

I downloaded today the new beta Jqm 1.3.0 and tested the new features.
The panel widget is a really interesting feature, so here are some feature requests for it ( I don't know if some of them might be already on the todolist):

  • An Option to set the width of the panel. Atm it's always 17em, but for some cases this is too/less wide (I know there is a workaround described in the api)
  • A display option setting to show the panel and shrink the main content instead of sliding a part of it out of the window.
  • Make it scroll on its own, so if the content of the panel is bigger than the page content, it wouldn't extend the whole page.

With these features implemented, it would be possible to have some sort of splitview without changing JQM core functionality.

What do you think about these features?

@toddparker
Copy link
Contributor

An Option to set the width of the panel. Atm it's always 17em, but for some cases this is too/less wide (I know there is a workaround described in the api)

// There is a lot of CSS to manage the width so I think having people write their own CSS will be the only manageable option.

A display option setting to show the panel and shrink the main content instead of sliding a part of it out of the window.
Make it scroll on its own, so if the content of the panel is bigger than the page content, it wouldn't extend the whole page.

// That is already in place. If you look at the panel docs on a wider screen, you will see that they re-flow. To do this, it involves some CSS in a media query and we explain how to write them in the docs.

Make it scroll on its own, so if the content of the panel is bigger than the page content, it wouldn't extend the whole page.

// There is an option to make the panel used fixed positioning but if the panel is taller than the page, we fall back to static positioning so you can scroll it. Using overflow: auto; is really buggy and not well supported so internal scrolling is tricky in a cross-platform way. If you're building an iOS 5/6 app, it's a quick CSS change but beyond that, it's complicated. We're looking at scrolling in a future release.

Closing this as a feature request. We'll re-open if we decide to tackle.

@jaspermdegroot
Copy link
Contributor

We will be using ticket #5493 as feature request for making the panel scroll independently.

Adding a "Panel styling" demo that shows how you can use a different width for panels.

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