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

index a005b6f..12b257d 100644 (file)
@@ -55,13 +55,14 @@ Roo.ux.iScroll = function (el, options) {
                        doc = document,
                        i;
 
-               that.wrapper = typeof el == 'object' ? el : doc.getElementById(el);
+               
+        that.wrapper = typeof el == 'object' ? el : doc.getElementById(el);
+        
+               that.wrapper.style.overflow = 'hidden';
+               that.scroller = that.wrapper.children[0];
         
-        //var wrap = Roo.get(that.wrapper.children[0]);
         
         
-               //that.wrapper.style.overflow = 'hidden';
-               that.scroller = that.wrapper.children[0];
 
                // Default options
                that.options = {