Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » SWT.WRAP not wrapping in chrome
SWT.WRAP not wrapping in chrome [message #1058303] Mon, 13 May 2013 10:03 Go to next message
Phill Perryman is currently offline Phill Perryman
Messages: 214
Registered: July 2009
Senior Member
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 Go to previous messageGo to next message
Tim Buschtoens is currently offline Tim Buschtoens
Messages: 382
Registered: July 2009
Senior Member
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/
Re: SWT.WRAP not wrapping in chrome [message #1058343 is a reply to message #1058319] Mon, 13 May 2013 11:40 Go to previous messageGo to next message
Phill Perryman is currently offline Phill Perryman
Messages: 214
Registered: July 2009
Senior Member
I think it might be a different issue as the label fails to wrap under any amount of sizing and reloading of the page. If I resize IE and refresh the page the wrapping changes. No changes to Chrome's size make the label wrap, it is always a single truncated line.

What is the update site for rc1 to I can install the fixed code to see if it makes a difference.
Re: SWT.WRAP not wrapping in chrome [message #1058457 is a reply to message #1058343] Tue, 14 May 2013 04:27 Go to previous message
Phill Perryman is currently offline Phill Perryman
Messages: 214
Registered: July 2009
Senior Member
I have raised a bug

https://bugs.eclipse.org/bugs/show_bug.cgi?id=407977
Previous Topic:Kepler M7 war product
Next Topic:How to let the user move something over the screen?
Goto Forum:
  


Current Time: Fri Aug 29 14:26:26 EDT 2014

Powered by FUDForum. Page generated in 0.02342 seconds