xy = this.el.getAlignToXY(this.triggerEl, '?');
+ if(this.el.getWidth() + xy[0] == Roo.lib.Dom.getViewWidth()){
+ xy[0] = xy[0] - (Roo.lib.Dom.getViewWidth() - this.triggerEl.getBox().right);
+ }
+
+ /*
if(this.el.getWidth() + xy[0] > Roo.lib.Dom.getViewWidth()){
xy[0] = xy[0] - this.el.getWidth() + this.triggerEl.getWidth();
}
-
+ */
if(this.el.getStyle('top') != 'auto' && this.el.getStyle('top').slice(-1) != "%"){
this.el.setXY(xy);
}