summaryrefslogtreecommitdiffstats
path: root/frontends/php/js/scrollbar.js
diff options
context:
space:
mode:
Diffstat (limited to 'frontends/php/js/scrollbar.js')
-rw-r--r--frontends/php/js/scrollbar.js7
1 files changed, 2 insertions, 5 deletions
diff --git a/frontends/php/js/scrollbar.js b/frontends/php/js/scrollbar.js
index 11277b96..ebe2138a 100644
--- a/frontends/php/js/scrollbar.js
+++ b/frontends/php/js/scrollbar.js
@@ -31,10 +31,7 @@ function scrollinit(x,y,w,period,stime,timel,bar_stime){
}
w = w | 0;
if(w == 0){
- var w = parseInt(document.body.scrollWidth) - 36;
- var w2 = parseInt(document.body.offsetWidth) - 36;
-
- w = (w2 > w)?w2:w;
+ w=get_bodywidth() - 36;
}
scrollcreate(x,y,w);
@@ -484,7 +481,7 @@ deselectall: function(){
if(IE){
document.selection.empty();
}
- else{
+ else if(!KQ){
var sel = window.getSelection();
sel.removeAllRanges();
}