var p = Roo.fly(this.dom.parentNode, '_internal');
return p ? p.findParent(simpleSelector, maxDepth, returnEl) : null;
},
+
+ /**
+ * Looks at the scrollable parent element
+ */
+ findScrollableParent : function(){
+
+ var el = Roo.get(this.dom.parentNode);
+
+ while (el && !el.isScrollable() && el.dom.nodeName.toLowerCase() != 'body'){
+ el = Roo.get(el.dom.parentNode);
+ }
+
+ if(!el.isScrollable()){
+ return null;
+ }
+
+ return el;
+ },
/**
* Walks up the dom looking for a parent node that matches the passed simple selector (e.g. div.some-class or span:first-child).
" of " + total +
(m.name ? (' - ' + m.name) : '');
Roo.debug && Roo.log(msg);
- if (!this.hideProgress && Roo.MessageBox) {
+ if (!_this.hideProgress && Roo.MessageBox) {
Roo.MessageBox.updateProgress( (total - mods.length)/total, msg );
}