CTabItems style broken in IE9 on RAP 2.2 [message #1429425] |
Tue, 23 September 2014 04:03  |
Eclipse User |
|
|
|
Hi,
I have a problem with rendering CTabItems in a CTabFolder in IE9 using RAP 2.2.
The problem is in the _measureElement method in rap-client.js in rwt.widgets.util.FontSizeCalculation (row:57012). in this part
"newmshtml" : function( element ) {
var computed = window.getComputedStyle( element, null );
var result = [
Math.ceil( parseFloat( computed.width ) ), // Ensure Texts are not cut off or wrap
Math.round( parseFloat( computed.height ) ) // Ensure vertical alignment looks right
];
return this._addOffset( result );
}
The getComputedStyle returns a bigger width than for example Chrome or Firefox.
This leads to strange positioning of the close button, because the left values of the resulting divs depend on the offset and the bounds of the enclosing div are precalculated and fixed in the java code. As a result the Close button can be invisible because it is placed outside of the eclosing divs visible bounds.
This only happens when I use a custom font(Custom Font: Source Sans Pro).
Any input would be appreciated.
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.10431 seconds