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

Panel and page scrolling content #5988

Closed
turbix opened this issue May 10, 2013 · 1 comment
Closed

Panel and page scrolling content #5988

turbix opened this issue May 10, 2013 · 1 comment

Comments

@turbix
Copy link

turbix commented May 10, 2013

I have long page content and on top of it have fixed panel, shows a context menu. It happens that user can scroll page content by swiping over panel content, like panel would be a transparent. It is unexpected as panel is supposed to be a "modal" object, while page is in background.

Another, much larger problem -- if panel has a edit box (input type=text) and main page with long content is scrolled down then in moment user starts entering text into panel's edit box background page is scrolled up to 0. This effect as it seems made by soft keyboard, on first typed symbol. I can guess this is connected to "scrollability" of page over panel. This problem reproducible on Android 4.x devices and not reproducible on 2.3. under PG. This effect is especially bad on tablet devices, as content suddenly goes up and user has no option to view original point from where panel was opened.

panel is declared as

    <div data-role="panel" data-display="overlay" data-position="right" data-swipe-close="false" data-dismissible="false" data-position-fixed=true >
        <div class="panelcontent" >
            <ul data-role="listview"  data-theme="c" data-divider-theme="c" >

                <li data-role="list-divider">Some text</li>
                <li><a href="#" >
                    <img  src="x.png" />
                    <h3><input type="text" value=""></input></h3>
                </a></li>
             </ul>
          </div> 
    </div>
@jaspermdegroot
Copy link
Contributor

@turbix

This is expected behaviour. See "Panel positioning" in the API docs: http://api.jquerymobile.com/panel/
There is already a feature request to make panel and page scroll independently: #5449 and #5493. This is something we will look into for a future version.
Closing this ticket as duplicate.

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

2 participants