Implementation of: Panel only and content only scroll (with fixed header)
I've implemented panel only and content only scroll, tested on android & iOS (Chrome & Safari browsers)
optimized for reveal and push effects
- body {
- overflow: hidden;
- }
-
- .ui-panel {
- top: -1px;
- }
-
- .ui-panel .ui-panel-inner,
- .ui-panel-wrapper .ui-content {
- overflow-y: auto;
- position: absolute;
- left: 0;
- right: 0;
- bottom: 0;
- top: 1px;
- -webkit-overflow-scrolling: touch;
- }
-
- .ui-panel-dismiss-open,
- .ui-panel-page-content-open .ui-content {
- overflow-y: hidden;
- }
-
- .ui-panel-wrapper {
- height: 100%;
- top: -1px;
- margin-bottom: -2px;
- }
-
- .ui-page {
- height: 100%;
- -moz-box-sizing: border-box;
- -webkit-box-sizing: border-box;
- box-sizing: border-box;
- }
Also you can use reveal effect shadow on the page with fixed toolbar without visual bugs.
- .ui-panel-display-reveal {
- -webkit-box-shadow: none;
- -moz-box-shadow: none;
- box-shadow: none;
- }
-
- .ui-page .ui-panel-page-content-position-left {
- -webkit-box-shadow: -5px 0px 5px rgba(0,0,0,.15);
- -moz-box-shadow: -5px 0px 5px rgba(0,0,0,.15);
- box-shadow: -5px 0px 5px rgba(0,0,0,.15);
- }