- var el = Roo.get(this.dom.parentNode);
-// Roo.log('D: '+JSON.stringify(D, null, 4));
- Roo.log(el);
- while (
- el &&
- (
- !el.isScrollable() ||
- (
- el.isScrollable() &&
- (
- D.getViewHeight() - el.dom.clientHeight > 15 ||
- D.getViewWidth() - el.dom.clientWidth > 15
- )
- )
- ) &&
- el.dom.nodeName.toLowerCase() != 'body'
- ){
- el = Roo.get(el.dom.parentNode);
-// Roo.log(
-// 'findparent:'+ JSON.stringify(el, null, 4)+
-// ' | scrollable: '+el.isScrollable()+
-// ' | D height: '+D.getViewHeight() +
-// ' | D width: '+D.getViewWidth() +
-// ' | el height: '+el.dom.clientHeight+
-// ' | el width: '+el.dom.clientWidth+
-// ' | id: '+el.id
-// );
+ if(this.getStyle('position') === 'fixed'){
+ return Roo.isAndroid ? Roo.get(document.documentElement) : Roo.get(document.body);