Community
Participate
Working Groups
Build Identifier: JFace 3.4.2 SLED11+SP1, the messagedialog UI incorrect with RTL, the message should use right alignment. Reproducible: Always Steps to Reproduce: 1. run my sample 2: click any buttons, will show message dialog. Bug: The message should use right alignment.
Created attachment 185745 [details] sample code
Created attachment 185746 [details] screen shot
is the problem on Linux or Windows ?
It is only reproduced on SLED11+SP1(Suse11+ SP1)
(In reply to comment #4) > It is only reproduced on SLED11+SP1(Suse11+ SP1) Don't you see the same problem on windows ? That MessageDialog is provided by JFace, moving to UI.
(In reply to comment #5) > (In reply to comment #4) > > It is only reproduced on SLED11+SP1(Suse11+ SP1) > > Don't you see the same problem on windows ? > > That MessageDialog is provided by JFace, moving to UI. it only reproduce on SLED11+SP1(Suse11+ SP1), not reproduce this on windows
Snippet: public class PR333130 { public static void main(String[] args) { Display display = new Display(); Shell shell = new Shell(display, SWT.DIALOG_TRIM|SWT.RIGHT_TO_LEFT); shell.setSize(500, 375); shell.setLayout(new GridLayout()); final Label l = new Label(shell, SWT.WRAP); l.setText("\u0646\u0635 \u0627\u0644\u062A\u0631\u0634\u064A\u062D"); l.setLayoutData(new GridData(SWT.FILL, SWT.BEGINNING, true, false, 0, 0)); shell.open(); while (!shell.isDisposed()) { if (!display.readAndDispatch()) display.sleep(); } display.dispose(); } } *** This bug has been marked as a duplicate of bug 41474 ***
Sorry, bug 41474 uses a Text. This bug is on a Label.
What is the GTK version on the platform reporting the bug ?
(In reply to comment #9) > What is the GTK version on the platform reporting the bug ? I believe any version of GTK will do. Did you try the snippet I posted ? Does it work for you ?
(In reply to comment #10) > (In reply to comment #9) > > What is the GTK version on the platform reporting the bug ? > > I believe any version of GTK will do. > Did you try the snippet I posted ? Does it work for you ? I tried it on RHEL , it worked without problems , that is why I am asking about GTK version, I don't have a Suse Linux environment right now , but I may try Ubuntu if it will help
(In reply to comment #11) > I tried it on RHEL , it worked without problems , that is why I am asking about > GTK version, I don't have a Suse Linux environment right now , but I may try > Ubuntu if it will help Did you try the snippet in comment 7 ? In which side what that text aligned ?
It fails for me on GTK 2.16.6 The text in the label should be aligned on the right edge but instead it shows on the left edge. Remove the SWT.WRAP from the Label and it will work as expected.
the red hat machine I am working on is not reproducing the buggy behavior gtk version is : gtk2-2.10.4-20.el5 while on Suse Linux Enterprise server, where the defect happens, the gtk version is : gtk2-2.14.4-16.1 does this mean we need to file a bug against gtk or try to handle things using api's from within swt?
(In reply to comment #15) > does this mean we need to file a bug against gtk or try to handle things using > api's from within swt? you can try both, but before reporting a bug against gtk try to write a gtk app that shows the alignment is inconsistent in GtkLabel between a wrappable and a non wrappable control.
SLED11 is no longer a supported target environment, please reopen this ticket if the issue reproduces on 4.9/4.10 in a supported target environment.