In IE6, when you apply a mask to an element that has padding, the mask doesn't cover the horizontal padding area.
So the current code
if(Ext.isIE && !(Ext.isIE7 && Ext.isStrict) && this.getStyle('height') == 'auto'){ // ie will not expand full height automatically
this._mask.setHeight(this.getHeight());
}
should probably be
if(Ext.isIE && !(Ext.isIE7 && Ext.isStrict)){ Modules: Theme related | drupal.org:: the-fly rounded corners for any HTML DIV element, that Issue:#342115: Padding causes elements to stretch. Works in sub-directory drupal installations. http://drupal.org/project/Modules/category/73HOME |
this._mask.setSize(this.getSize());
}
Thanks Jack!
The clientWidth thing is working for my case, but what if this.getStyle('height') is not 'auto'? Is that possible?
Bump.
If height is not auto then height has a height and hasLayout will be true. If hasLayout is true then the workaround shouldn't be required. Hopefully that makes sense. ;)
Thanks Ivaylo. Please check out the workaround I put in SVN.
I Am a Sinner – What About You?
Global Sourcing and Supplier Online by Dylan
|