summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEarl Miles2010-08-20 16:20:44 (GMT)
committer Earl Miles2010-08-20 16:20:44 (GMT)
commitdfee0c23e918aaae92f0640491cfaae4a6438953 (patch)
treef63c5ab724b33dceb575d57f4ff83530a715a370
parentd8b9c40654359e7c9f83e75a1753bc1e45eb39a6 (diff)
Update javascript to account for CTools no longer using dimensions.js
-rw-r--r--js/display_editor.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/js/display_editor.js b/js/display_editor.js
index 74cb091..025aeb6 100644
--- a/js/display_editor.js
+++ b/js/display_editor.js
@@ -411,9 +411,9 @@
}
draggable.timeCount = draggable.timeCount + 1;
var left = $(window).scrollLeft();
- var right = left + $(window).innerWidth();
+ var right = left + $(window).width();
var top = $(window).scrollTop();
- var bottom = top + $(window).innerHeight();
+ var bottom = top + $(window).height();
if (draggable.mousePos.x < left + scrollBuffer && left > 0) {
window.scrollTo(left - scrollDistance, top);