Label text being cutoff when resizing browser or chaging zoom level of browser [message #956765] |
Wed, 24 October 2012 19:47  |
Eclipse User |
|
|
|
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  |
Eclipse User |
|
|
|
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/
|
|
|
Powered by
FUDForum. Page generated in 0.03370 seconds