Community
Participate
Working Groups
WizardDialog always shows very wide(over 1024 pixels) when I use it in standalone application even with a blank wizard page. This problem seems to appear only on Linux GTK2 platform. I've managed to workaround it by overriding its create() method and put getContents().pack() method. Am I missing something, or is it a bug in SWT-GTK? Thanks!
WizardPage is not SWT. This looks like a missing feature in JFace.
Could you please give an example? The WizardDialog determines it preferred size by doing a compute size on the currently displayed page and resizing accordingly. pack() is not a generally required method. Having to call it usually indicates that your layout code is missing something.
Created attachment 4852 [details] Test java file which describes the sizing problem. I didn't do any layout in this test class, but it won't be resized any narrower than aprox 1044 pixels on linux gtk2 platform.
The problem is that you are using the WizardDialog without using showPage() which is the method that does all of the size updating. When you want to make a page visible use showPage. I suspect your problem lies with layout calculations on GTK.
Could you please be more specific how I should call showPage() method? I've tried WizardDialog dialog = new WizardDialog(getShell(), wizard); dialog.open(); dialog.showPage(wizard.getStartingPage()); and dialog.showPage(wizard.getStartingPage()); dialog.open(); but both does not solve the problem. And I don't understand why I it was designed so that I should explicitly tell it to show the first page on dialog open.
Reopening for investigation.Should be able to do this via dialog.showPage(wizard.getStartingPage()); dialog.open();
The problem persists in the recent SWT release(3.0M3). Maybe it's related to the similar problem(#43788) I've reported?
I suspect these problems were all related to the weirdness in your pango version. Please reopen if you're still having problems. *** This bug has been marked as a duplicate of 43788 ***