0

I created a test application using Yeoman/Angular.js and pasted a chunk load of HTML (responsive) to view it as a Chrome Packaged App (CPA). The page_height with all its content is more than the height of packaged application in full_screen mode.

There seems no way to scroll down the view (touch/mouse-drag) to see the content below. How do I add/enable scroll bar on a page? Shouldn't this be by default?

Marvin Danig
  • 3,738
  • 6
  • 39
  • 71
  • ha. I'm having a problem where I can't get it to NOT scroll. I try to set the overflow to hidden, but it still shows scrollbars when the content is larger than the width/height I set. Maybe you can try specifying an exact width/height on your webview (set it to something small) and see if it scrolls. – JT703 Feb 05 '13 at 15:23
  • In reply to JT703 who is trying to prevent scrolling in the webview, and any later readers trying to do the same, the following worked for me: – danf Aug 27 '14 at 22:16

2 Answers2

4

Had the same problem. On your css file, add:

html {
    overflow-y: scroll;
}
Matferib
  • 318
  • 3
  • 10
0

Another more smoothly solution is below:

body {
    margin:0;
    padding:0;
    overflow-y: hidden;
}
body:hover {
    overflow-y: scroll;
}

Jsfiddle

Reference

Community
  • 1
  • 1
Talayhan
  • 21
  • 4