Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Label textsize
Label textsize [message #1102085] Thu, 05 September 2013 10:39 Go to next message
Wim Anckaert is currently offline Wim AnckaertFriend
Messages: 32
Registered: December 2012
Member
Hi,

when a label gets its initial width size then the full label is shown.
But when the client zooms out the webpage it can happen that some parts are missing.
Especially when there are word breaking characters ex.'-' or spaces in the label.

If i change the width of the div where the label is in with developer tools in chrome it's shown.

snippet to illustrate this.
public class LabelDrawing extends AbstractEntryPoint {

    @Override
    protected void createContents(Composite parent) {
        Composite composite = new Composite(parent, SWT.CENTER);
        GridLayout layout = new GridLayout(2, false);
        layout.numColumns = 2;
        composite.setLayout(layout);

        Label title = new Label(composite, SWT.CENTER);
        title.setText("Label test 2");
    }
}


Is this something that can be fixed?
I found the following bug that might be related.
https://bugs.eclipse.org/bugs/show_bug.cgi?id=371360

found the actual bug
https://bugs.eclipse.org/bugs/show_bug.cgi?id=351218

Kind regards,
Wim

[Updated on: Thu, 05 September 2013 10:45]

Report message to a moderator

Re: Label textsize [message #1102934 is a reply to message #1102085] Fri, 06 September 2013 08:01 Go to previous message
Tim Buschtoens is currently offline Tim BuschtoensFriend
Messages: 396
Registered: July 2009
Senior Member
Hi.

This sounds like this:

Bug 351218 - Improve support for browser-zooming on runtime
https://bugs.eclipse.org/bugs/show_bug.cgi?id=351218

Changing the zoom level after the application already started is tricky
to support, as described in this bug. It's currently an accepted
limitation, which is why the bug is categorized as an enhancement. It's
not likely to change soon unless someone finds an simpler solution.

Greetings,
Tim

Am 05.09.2013 12:39, schrieb Wim Anckaert:
> Hi,
>
> when a label gets its initial width size then the full label is shown.
> But when the client zooms out the webpage it can happen that some parts
> are missing.
> Especially when there are word breaking characters ex.'-' or spaces in
> the label.
>
> If i change the width of the div where the label is in with developer
> tools in chrome it's shown.
>
> snippet to illustrate this.
>
> public class LabelDrawing extends AbstractEntryPoint {
>
> @Override
> protected void createContents(Composite parent) {
> Composite composite = new Composite(parent, SWT.CENTER);
> GridLayout layout = new GridLayout(2, false);
> layout.numColumns = 2;
> composite.setLayout(layout);
>
> Label title = new Label(composite, SWT.CENTER);
> title.setText("Label test 2");
> }
> }
>
>
> Is this something that can be fixed?
> I found the following bug that might be related.
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=371360
>
>
> Kind regards,
> Wim

--
Tim Buschtöns

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

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Previous Topic:TableViewer column divider click to resize
Next Topic:Application Freeze occasionally
Goto Forum:
  


Current Time: Thu Apr 25 05:39:04 GMT 2024

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

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

Back to the top