projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d8d8491
)
Roo/tree/TreeDragZone.js
author
Alan Knowles
<alan@roojs.com>
Tue, 10 Jul 2012 10:18:58 +0000
(18:18 +0800)
committer
Alan Knowles
<alan@roojs.com>
Tue, 10 Jul 2012 10:18:58 +0000
(18:18 +0800)
Roo/tree/TreeDragZone.js
patch
|
blob
|
history
diff --git
a/Roo/tree/TreeDragZone.js
b/Roo/tree/TreeDragZone.js
index
30426d1
..
010902e
100644
(file)
--- a/
Roo/tree/TreeDragZone.js
+++ b/
Roo/tree/TreeDragZone.js
@@
-59,13
+59,16
@@
Roo.extend(Roo.tree.TreeDragZone, Roo.dd.DragZone, {
Roo.log( [ x, y, h , w, this.scroll ] );
Roo.log(this.el.getBox());
-
+ Roo.log(this.el.getScroll());
if (this.scroll) {
+
+ var box = this.el.getBox();
+
// The client height
- var clientH =
Roo.lib.Dom.getViewWidth()
;
+ var clientH =
box.height
;
// The client width
- var clientW =
Roo.lib.Dom.getViewHeight()
;
+ var clientW =
box.width
;
// The amt scrolled down
var st = this.DDM.getScrollTop();