Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » TextSize weirdness
TextSize weirdness [message #826243] Wed, 21 March 2012 21:16 Go to next message
Chris Fairhall is currently offline Chris FairhallFriend
Messages: 221
Registered: February 2011
Senior Member
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 06:28 Go to previous messageGo to next message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 2426
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
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 13:41]

Report message to a moderator

Re: TextSize weirdness [message #826532 is a reply to message #826506] Thu, 22 March 2012 07:21 Go to previous message
Chris Fairhall is currently offline Chris FairhallFriend
Messages: 221
Registered: February 2011
Senior Member
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: Tue Apr 23 12:49:34 GMT 2024

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

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

Back to the top