{
this.picker().removeClass(['bottom-left', 'bottom-right', 'top-left', 'top-right']);
- var cls = 'bottom-';
+ var cls = ['bottom'];
Roo.log('run!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!1');
Roo.log(Roo.lib.Dom.getViewWidth());
Roo.log(this.picker().getWidth());
if((Roo.lib.Dom.getViewHeight() + Roo.get(document.body).getScroll().top) - (this.inputEl().getBottom() + this.picker().getHeight()) < 0){ // top
- cls = 'top-';
+ cls.pop().push('top');
}
+ cls.push('right');
+
if((Roo.lib.Dom.getViewWidth() + Roo.get(document.body).getScroll().left) - (this.inputEl().getLeft() + this.picker().getWidth()) < 0){ // left
- cls += 'left';
- }else{
- cls += 'right';
+ cls.pop().push('left');
}
Roo.log(cls);