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 |
Jacek Wozniak Messages: 4 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 |
Tim Buschtoens Messages: 396 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/
|
|
| |
Goto Forum:
Current Time: Fri Apr 19 16:32:05 GMT 2024
Powered by FUDForum. Page generated in 0.02139 seconds
|