Implementation of: Panel only and content only scroll (with fixed header)

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

  1. body {
  2.     overflow: hidden;
  3. }

  4. .ui-panel {
  5.     top: -1px;
  6. }

  7.     .ui-panel .ui-panel-inner,
  8.     .ui-panel-wrapper .ui-content {
  9.         overflow-y: auto;
  10.         position: absolute;
  11.         left: 0;
  12.         right: 0;
  13.         bottom: 0;
  14.         top: 1px;
  15.         -webkit-overflow-scrolling: touch;
  16.     }

  17. .ui-panel-dismiss-open,
  18. .ui-panel-page-content-open .ui-content {
  19.     overflow-y: hidden;
  20. }

  21. .ui-panel-wrapper {
  22.     height: 100%;
  23.     top: -1px;
  24.     margin-bottom: -2px;
  25. }

  26. .ui-page {
  27.     height: 100%;
  28.     -moz-box-sizing: border-box;
  29.     -webkit-box-sizing: border-box;
  30.     box-sizing: border-box;
  31. }
Also you can use reveal effect shadow on the page with fixed toolbar without visual bugs.
  1. .ui-panel-display-reveal {
  2.     -webkit-box-shadow: none;
  3.     -moz-box-shadow: none;
  4.     box-shadow: none;
  5. }

  6. .ui-page .ui-panel-page-content-position-left {
  7.     -webkit-box-shadow: -5px 0px 5px rgba(0,0,0,.15);
  8.     -moz-box-shadow: -5px 0px 5px rgba(0,0,0,.15);
  9.     box-shadow: -5px 0px 5px rgba(0,0,0,.15);
  10. }