stever
7 Apr 2009, 2:29 PM
The tooltip div now has a anchorEl div that is added to the body, and takes up space even when hidden since visibility:hidden divs still take space (as opposed to display:none divs). It could use display:none, or it could use offsets and be positioned absolutely. I propose display:none simply because it is an easy fix.
Original:
onRender : function(ct, position){
Ext.ToolTip.superclass.onRender.call(this, ct, position);
this.anchorCls = 'x-tip-anchor-' + this.getAnchorPosition();
this.anchorEl = ct.createChild({
cls: 'x-tip-anchor ' + this.anchorCls
});
}
Proposed:
onRender : function(ct, position){
Ext.ToolTip.superclass.onRender.call(this, ct, position);
this.anchorCls = 'x-tip-anchor-' + this.getAnchorPosition();
this.anchorEl = ct.createChild({
cls: 'x-tip-anchor ' + this.anchorCls
});
this.anchorEl.setVisibilityMode(Ext.Element.DISPLAY);
}
Original:
onRender : function(ct, position){
Ext.ToolTip.superclass.onRender.call(this, ct, position);
this.anchorCls = 'x-tip-anchor-' + this.getAnchorPosition();
this.anchorEl = ct.createChild({
cls: 'x-tip-anchor ' + this.anchorCls
});
}
Proposed:
onRender : function(ct, position){
Ext.ToolTip.superclass.onRender.call(this, ct, position);
this.anchorCls = 'x-tip-anchor-' + this.getAnchorPosition();
this.anchorEl = ct.createChild({
cls: 'x-tip-anchor ' + this.anchorCls
});
this.anchorEl.setVisibilityMode(Ext.Element.DISPLAY);
}