Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Label text being cutoff when resizing browser or chaging zoom level of browser
Label text being cutoff when resizing browser or chaging zoom level of browser [message #956765] Wed, 24 October 2012 19:47 Go to next message
George R Malary is currently offline George R Malary
Messages: 36
Registered: March 2012
Location: New Jersey
Member
I have a constant problem of labels being cut off. The final letter is either partly showing, or sometimes the whole label is showing only half. This happens sometimes on normal workflow, switching views, perspectives, but it happens consistently when zooming in and out with the browser, or also when resizing the browser. I have played with calling pack() on labels, or layout'ing composites.

I wonder if this is the only way to handle this, and if there is a way to handle this for the whole application. Or do I have to add a listener to re-layout the whole application on workbench resize, or zoom?

Any advice would be greatly appreciated.
Re: Label text being cutoff when resizing browser or chaging zoom level of browser [message #959404 is a reply to message #956765] Fri, 26 October 2012 17:36 Go to previous message
Tim Buschtoens is currently offline Tim Buschtoens
Messages: 383
Registered: July 2009
Senior Member
Hi.

Your problems should not be directly related to SWT layouting. This
glitch is a result of rounding errors by the browser. It is known to
happen when zooming on runtime[1]. However, if the zoom level is 100%
from the start and isn't changed, this should NOT happen. If a simple
resize of the browser results in this, it's likely a bug that should be
reported.

If you can give a snippet or example project to reproduce it, i will
have a look at it.

Greetings,
Tim

[1] https://bugs.eclipse.org/bugs/show_bug.cgi?id=351218

Am 24.10.2012 21:47, schrieb George R Malary:
> I have a constant problem of labels being cut off. The final letter is
> either partly showing, or sometimes the whole label is showing only
> half. This happens sometimes on normal workflow, switching views,
> perspectives, but it happens consistently when zooming in and out with
> the browser, or also when resizing the browser. I have played with
> calling pack() on labels, or layout'ing composites.
>
> I wonder if this is the only way to handle this, and if there is a way
> to handle this for the whole application. Or do I have to add a
> listener to re-layout the whole application on workbench resize, or zoom?
>
> Any advice would be greatly appreciated.

--
Tim Buschtöns

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

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Previous Topic:Demos
Next Topic:RAP 1.5 RC3 in iOS zooming problem
Goto Forum:
  


Current Time: Wed Sep 17 03:39:25 GMT 2014

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

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