Skip to main content



      Home
Home » Eclipse Projects » Remote Application Platform (RAP) » TextSize weirdness
TextSize weirdness [message #826243] Wed, 21 March 2012 17:16 Go to next message
Eclipse UserFriend
I have a running application that is exhibting a strange behaviour.
Running the same scenario on another machine with the same code can't reproduce it.
When viewing a particular page in the application something is causing the layout to render the page over 2400 pixels wide. It only happens when a specific set of data is loaded in to the widgets. I took a heap dump and had a look through the data in org.eclipse.rwt.internal.textsize.TextSizeStorage$Entry and there are several entries with a very close width (2418x13) to what the widgets on the page are setting themselves to.

This is leading me to believe a hiccup has happened with textsize determination that has stored (or the browser has incorrectly calculated) very large widths for at least one of the strings shown on the page.

This effects all users of the application.

Other than a restart or overflowing the textsize cache (it currently has around 5000 entries, it would be painful to have to grow it past 10,000) is there a way to get RWT to re-issue text size queries? It looks like one errant browser reporting an incorrect size can screw up the application for all users.
Re: TextSize weirdness [message #826506 is a reply to message #826243] Thu, 22 March 2012 02:28 Go to previous messageGo to next message
Eclipse UserFriend
Hi Chris,

> Other than a restart or overflowing the textsize cache (it currently
> has around 5000 entries, it would be painful to have to grow it past
> 10,000) is there a way to get RWT to re-issue text size queries? It
> looks like one errant browser reporting an incorrect size can screw up
> the application for all users.
If the font is the same and the entry is already measured, there is no
way to re-issue text size queries again. Could you provide a snippet to
reproduce the issue? Do you know which is the exact errant
browser/version? Please file a bugzilla and provide all your
finding/snippet there.
Thanks,
Ivan

--
Ivan Furnadjiev

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

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/

[Updated on: Thu, 22 March 2012 09:41] by Moderator

Re: TextSize weirdness [message #826532 is a reply to message #826506] Thu, 22 March 2012 03:21 Go to previous message
Eclipse UserFriend
I wish I could reproduce it. A restart of the server fixed the problem. The only browsers that have access are IE8 on XP SP3. I don't think I have anything substantial to log a bug.
Previous Topic:Run Configuration - problem with "Entry Point or Application"
Next Topic:[404 ProxyServlet] registered resource not found in /rwt-resources/org.eclipse.swt.browser/
Goto Forum:
  


Current Time: Thu Jun 19 18:59:51 EDT 2025

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

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

Back to the top