diff --git a/.gitignore b/.gitignore index 99d84ed..e5ac756 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ node_modules bower_components /dist +.idea \ No newline at end of file diff --git a/README.md b/README.md index c979960..403d319 100644 --- a/README.md +++ b/README.md @@ -97,11 +97,11 @@ But, they're all very trivial and there is nothing to worry about. The following requirements should meet. * the container must have a 'position' css style. -* the container must have an 'overflow:hidden' css style. The following requirements are included in the basic CSS, but please keep in mind when you'd like to change the CSS files. +* the container must have an 'overflow:hidden' css style. * the scrollbar's position must be 'absolute'. * the scrollbar-x must have a 'bottom' css style, and the scrollbar-y must have a 'right' css style. @@ -117,7 +117,6 @@ requirements. #container { position: relative; height: 100%; /* Or whatever you want (eg. 400px) */ - overflow: hidden; } ``` diff --git a/examples/always-visible.html b/examples/always-visible.html index 0142fca..4c4b757 100644 --- a/examples/always-visible.html +++ b/examples/always-visible.html @@ -7,7 +7,7 @@ diff --git a/examples/jquery.html b/examples/jquery.html index 3badd6a..afdfae5 100644 --- a/examples/jquery.html +++ b/examples/jquery.html @@ -7,7 +7,7 @@ diff --git a/examples/options-default.html b/examples/options-default.html index fb0e679..3cf6bf2 100644 --- a/examples/options-default.html +++ b/examples/options-default.html @@ -6,7 +6,7 @@ diff --git a/examples/options-minScrollbarLength.html b/examples/options-minScrollbarLength.html index 6cf2861..88e782e 100644 --- a/examples/options-minScrollbarLength.html +++ b/examples/options-minScrollbarLength.html @@ -6,7 +6,7 @@ diff --git a/examples/options-suppressScrollAxis.html b/examples/options-suppressScrollAxis.html index 4d1378f..0bc1a02 100644 --- a/examples/options-suppressScrollAxis.html +++ b/examples/options-suppressScrollAxis.html @@ -6,7 +6,7 @@ diff --git a/examples/options-wheelSpeed.html b/examples/options-wheelSpeed.html index 6e1230c..b1f9b1d 100644 --- a/examples/options-wheelSpeed.html +++ b/examples/options-wheelSpeed.html @@ -6,7 +6,7 @@ diff --git a/examples/reach-the-end-callback.html b/examples/reach-the-end-callback.html index 124a1e0..1dcc702 100644 --- a/examples/reach-the-end-callback.html +++ b/examples/reach-the-end-callback.html @@ -10,7 +10,7 @@ border: 1px solid gray; height:150px; width: 400px; - overflow: hidden; + overflow: auto; position: relative; } #status { color: red; } diff --git a/examples/removable-list-element.html b/examples/removable-list-element.html index d034757..4db76f0 100644 --- a/examples/removable-list-element.html +++ b/examples/removable-list-element.html @@ -10,7 +10,7 @@ border: 1px solid gray; max-height: 300px; width: 400px; - overflow: hidden; + overflow: auto; position: relative; } #test .element { diff --git a/examples/rtl.html b/examples/rtl.html index d774fce..b236166 100644 --- a/examples/rtl.html +++ b/examples/rtl.html @@ -6,7 +6,7 @@ diff --git a/src/css/main.scss b/src/css/main.scss index b19474f..16e1f7e 100644 --- a/src/css/main.scss +++ b/src/css/main.scss @@ -69,6 +69,8 @@ $ps-bar-hover: #999; } .ps-container { + overflow: hidden !important; + &.ps-active-x > .ps-scrollbar-x-rail, &.ps-active-y > .ps-scrollbar-y-rail { display: block;