From b5dcfd4a4cfafea43d7dd952011d24b26eb17dda Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Mon, 15 Aug 2011 18:58:33 +0800 Subject: [PATCH] ux/Iscroll.js --- ux/Iscroll.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/ux/Iscroll.js b/ux/Iscroll.js index a005b6f55c..12b257d9bd 100644 --- a/ux/Iscroll.js +++ b/ux/Iscroll.js @@ -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 = { -- 2.39.2