Skip to main content



      Home
Home » Eclipse Projects » Remote Application Platform (RAP) » CTabItems style broken in IE9 on RAP 2.2
CTabItems style broken in IE9 on RAP 2.2 [message #1429425] Tue, 23 September 2014 04:03 Go to next message
Eclipse UserFriend
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.




Re: CTabItems style broken in IE9 on RAP 2.2 [message #1441218 is a reply to message #1429425] Thu, 09 October 2014 08:10 Go to previous messageGo to next message
Eclipse UserFriend
Hi,
I've just discovered that there is a bug in text-size-determination
(FontSizeCalculation.js#_measureItem), where fonts with spaces in their
name are not properly set on the DOM measure node. The issue will be
fixed in RAP 3.0.0M3.
Best,
Ivan

--
Ivan Furnadjiev

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: CTabItems style broken in IE9 on RAP 2.2 [message #1443780 is a reply to message #1429425] Mon, 13 October 2014 03:48 Go to previous message
Eclipse UserFriend
Hi,
I'm not sure if the fix in change https://git.eclipse.org/r/34649 will
solve your problem. Could you try with latest RAP nightly build? It
would be interesting for me to know the result.
Best,
Ivan

--
Ivan Furnadjiev

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Previous Topic:Possible conflict with RCP in workbench styling support
Next Topic:Lock up while shutting down RAP application in Wildfly 8.1/JBoss
Goto Forum:
  


Current Time: Thu Jul 10 01:51:11 EDT 2025

Powered by FUDForum. Page generated in 0.10431 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top