How to keep panel height fixed with scroll if content overflow for JQuery Mobile

无人久伴 提交于 2019-12-03 08:02:58

Here is you fiddle updated: http://jsfiddle.net/ezanker/GSSD3/1/

Just added some CSS to absolutely position and size the panel's inner div and to allow scrolling:

.ui-panel .ui-panel-inner {
    overflow: auto;
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;  
    -webkit-overflow-scrolling: touch;
}

You will need to test this for the devices you are supporting as I am not sure if it will work on all of them...

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!