SWT.WRAP not wrapping in chrome [message #1058303] |
Mon, 13 May 2013 10:03  |
Eclipse User |
|
|
|
I modified the Hello World app as below by adding a couple of labels and changing to single grid layout. In IE the text wraps on the screen but in Chrome it just truncates and occupies a single line. Tried searching , found something back in Nov but no resolution.
I was trying to create an opening page for my app and so need quite a bit of introduction text.
If anyone else can reproduce I will raise a bug. Using Kepler M7.
parent.setLayout(new GridLayout(1, false));
Button checkbox = new Button(parent, SWT.CHECK);
checkbox.setText("Hello");
Button button = new Button(parent, SWT.PUSH);
button.setText("World");
Label label = new Label(parent, SWT.WRAP);
label.setText("dsh jds sdhf sjdhf sdjfh sjdfh jdf jdf sdjfh sdjf djfh skdjfh sdjf sldjfh slkdjfh skldjfh skldjfh sldjfh skldfh sldjfhfhdufhduifhsdh lsdjfh sdjh ksdjh sdjf sdjfh sdjfh sdjfh sldjfh sdjfh asdjfh sldjfh sldjf skldh sdf ");
new Label(parent, SWT.NONE).setText("label");
|
|
|
Re: SWT.WRAP not wrapping in chrome [message #1058319 is a reply to message #1058303] |
Mon, 13 May 2013 10:35   |
Eclipse User |
|
|
|
Hi.
Could be the same as this issue:
[Bug 405664] [Label] Using a Label with WRAP truncates the text on
resize if only width changed
https://bugs.eclipse.org/bugs/show_bug.cgi?id=405664
This was fixed today, so it would work in RC1 unless it's a different issue.
Greetings,
Tim
Am 13.05.2013 16:03, schrieb Phill Perryman:
> I modified the Hello World app as below by adding a couple of labels and
> changing to single grid layout. In IE the text wraps on the screen but
> in Chrome it just truncates and occupies a single line. Tried searching
> , found something back in Nov but no resolution.
>
> I was trying to create an opening page for my app and so need quite a
> bit of introduction text.
>
> If anyone else can reproduce I will raise a bug. Using Kepler M7.
>
>
> parent.setLayout(new GridLayout(1, false));
> Button checkbox = new Button(parent, SWT.CHECK);
> checkbox.setText("Hello");
> Button button = new Button(parent, SWT.PUSH);
> button.setText("World");
> Label label = new Label(parent, SWT.WRAP);
> label.setText("dsh jds sdhf sjdhf sdjfh sjdfh jdf jdf sdjfh sdjf djfh
> skdjfh sdjf sldjfh slkdjfh skldjfh skldjfh sldjfh skldfh
> sldjfhfhdufhduifhsdh lsdjfh sdjh ksdjh sdjf sdjfh sdjfh sdjfh sldjfh
> sdjfh asdjfh sldjfh sldjf skldh sdf ");
> new Label(parent, SWT.NONE).setText("label");
--
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.05449 seconds