ux/Iscroll.js
authorAlan Knowles <alan@akbkhome.com>
Mon, 15 Aug 2011 10:50:16 +0000 (18:50 +0800)
committerAlan Knowles <alan@akbkhome.com>
Mon, 15 Aug 2011 10:50:16 +0000 (18:50 +0800)
ux/Iscroll.js

index fc74eec..7390cb1 100644 (file)
@@ -56,8 +56,12 @@ Roo.ux.iScroll = function (el, options) {
                        i;
 
                that.wrapper = typeof el == 'object' ? el : doc.getElementById(el);
+        
+        var wrap = Roo.get(that.wrapper.children[0]);
+        
+        
                //that.wrapper.style.overflow = 'hidden';
-               that.scroller = that.wrapper; //.children[0];
+               that.scroller = wrap.wrap();
 
                // Default options
                that.options = {