Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Space characters missing in table items in IE 9
Space characters missing in table items in IE 9 [message #989056] Tue, 04 December 2012 13:19 Go to next message
Jacek Wozniak is currently offline Jacek WozniakFriend
Messages: 2
Registered: December 2012
Junior Member
Hello,
If table item contains more than one space character between words then only one space is shown.
For example, a string with 5 spaces: "5_____5" is displayed as "5 5".

When you hover the mouse over the item or click on the table (or Tab to give it focus) it gets expanded and the correct text is displayed.
You can observe this strange behavior when:
- running in IE 9 / IE 10 Release Preview for Win 7 (in FireFox and Chrome it works OK) and
- the initial focus is set to another control than the table containing spaces and
- running 2nd or next instance of the application.

Could you please tell me if it is a bug in Internet Explorer or should I file it to Eclipse bugzilla (or my code is not correct)?
Does anyone have an idea for a workaround?

I tested using Eclipse: 4.2SR1 / RAP 1.5.1 and Eclipse 4.3M3 / RAP 2.0M3 (also nightly build 2012-12-04).

Steps to reproduce:
1. Run my snippet in IE 9.
2. Press Refresh/F5 in the browser to start a new application instance (the first one works fine).
3. The spaces are missing, so hover the mouse over the table items to update them to show the correct text.

Here is a simple RWT application snippet:
		Display display = new Display();
		Shell shell = new Shell( display, SWT.NO_TRIM);
		shell.setMaximized(true);				
		shell.setLayout(new GridLayout());
		
		Text text = new Text(shell, SWT.BORDER);
		text.setText("If table has no initial focus...spaces are missing in IE9");
		
		Table table = new Table(shell, SWT.BORDER);
		table.setHeaderVisible(true);		
		TableColumn c = new TableColumn(table, SWT.LEFT);
		c.setText("Spaces");
		c.setWidth(200);
		
		new TableItem(table, SWT.NONE).setText(0, "1 1");
		new TableItem(table, SWT.NONE).setText(0, "2  2");
		new TableItem(table, SWT.NONE).setText(0, "3   3");
		new TableItem(table, SWT.NONE).setText(0, "4    4");
		new TableItem(table, SWT.NONE).setText(0, "5     5");
		new TableItem(table, SWT.NONE).setText(0, "6      6");
		
//		table.setFocus();	// table works OK if it gets initial focus		

		shell.open();

Thanks,
Jacek
Re: Space characters missing in table items in IE 9 [message #989223 is a reply to message #989056] Wed, 05 December 2012 09:44 Go to previous messageGo to next message
Tim Buschtoens is currently offline Tim BuschtoensFriend
Messages: 387
Registered: July 2009
Senior Member
Hi.

This may or may not be an IE bug, but it should work correctly in RAP in
any case. Please open a bug.

Also, if i understand correctly, this issue existed at least since
1.5.1, but only in IE9 upwards? Did you test IE 7 or 8? Please include
this information and the snippet in the bug report.

Thank you.

Greetings,
Tim



Am 04.12.2012 14:28, schrieb Jacek Wozniak:
> Hello,
> If table item contains more than one space character between words then
> only one space is shown.
> For example, a string with 5 spaces: "5_____5" is displayed as "5 5".
>
> When you hover the mouse over the item or click on the table (or Tab to
> give it focus) it gets expanded and the correct text is displayed.
> You can observe this strange behavior when:
> - running in IE 9 / IE 10 Release Preview for Win 7 (in FireFox and
> Chrome it works OK) and
> - the initial focus is set to another control than the table containing
> spaces and
> - running 2nd or next instance of the application.
>
> Could you please tell me if it is a bug in Internet Explorer or should I
> file it to Eclipse bugzilla (or my code is not correct)?
> Does anyone have an idea for a workaround?
>
> I tested using Eclipse: 4.2SR1 / RAP 1.5.1 and Eclipse 4.3M3 / RAP 2.0M3
> (also nightly build 2012-12-04).
>
> Steps to reproduce:
> 1. Run my snippet in IE 9.
> 2. Press Refresh/F5 in the browser to start a new application
> instance (the first one works fine).
> 3. The spaces are missing, so hover the mouse over the table items
> to update them to show the correct text.
>
> Here is a simple RWT application snippet:
> Display display = new Display();
> Shell shell = new Shell( display, SWT.NO_TRIM);
> shell.setMaximized(true);
> shell.setLayout(new GridLayout());
>
> Text text = new Text(shell, SWT.BORDER);
> text.setText("If table has no initial focus...spaces are
> missing in IE9");
>
> Table table = new Table(shell, SWT.BORDER);
> table.setHeaderVisible(true);
> TableColumn c = new TableColumn(table, SWT.LEFT);
> c.setText("Spaces");
> c.setWidth(200);
>
> new TableItem(table, SWT.NONE).setText(0, "1 1");
> new TableItem(table, SWT.NONE).setText(0, "2 2");
> new TableItem(table, SWT.NONE).setText(0, "3 3");
> new TableItem(table, SWT.NONE).setText(0, "4 4");
> new TableItem(table, SWT.NONE).setText(0, "5 5");
> new TableItem(table, SWT.NONE).setText(0, "6 6");
>
> // table.setFocus(); // table works OK if it gets initial focus
>
> shell.open();
> Thanks,
> Jacek

--
Tim Buschtöns

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

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: Space characters missing in table items in IE 9 [message #989305 is a reply to message #989223] Wed, 05 December 2012 15:19 Go to previous message
Jacek Wozniak is currently offline Jacek WozniakFriend
Messages: 2
Registered: December 2012
Junior Member
Thank you for your reply.

I did a few more tests:
- it works in IE 8.
- the bug has existed since RAP 1.5.0.

Here is the report:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=395822

Greetings,
Jacek
Previous Topic:RWT Standalone WAR to WebLogic contextDirectory problem
Next Topic:how to set the icon of rap action
Goto Forum:
  


Current Time: Thu Nov 27 23:28:43 GMT 2014

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

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