Bug 37361 - [Wizards] Unable to change size of WizardDialog
Summary: [Wizards] Unable to change size of WizardDialog
Status: RESOLVED DUPLICATE of bug 43788
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 2.1   Edit
Hardware: PC Linux-GTK
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Stefan Xenos CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-05-07 23:28 EDT by Xavier Cho CLA
Modified: 2005-06-22 21:57 EDT (History)
1 user (show)

See Also:


Attachments
Test java file which describes the sizing problem. (2.62 KB, text/plain)
2003-05-12 12:02 EDT, Xavier Cho CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Xavier Cho CLA 2003-05-07 23:28:49 EDT
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!
Comment 1 Steve Northover CLA 2003-05-08 09:25:21 EDT
WizardPage is not SWT.  This looks like a missing feature in JFace.
Comment 2 Tod Creasey CLA 2003-05-12 10:57:32 EDT
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.
Comment 3 Xavier Cho CLA 2003-05-12 12:02:07 EDT
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.
Comment 4 Tod Creasey CLA 2003-05-22 09:34:27 EDT
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. 
Comment 5 Xavier Cho CLA 2003-05-25 04:40:28 EDT
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.
Comment 6 Tod Creasey CLA 2003-05-27 08:29:26 EDT
Reopening for investigation.Should be able to do this via

 dialog.showPage(wizard.getStartingPage());
        dialog.open();
Comment 7 Xavier Cho CLA 2003-11-09 00:17:04 EST
The problem persists in the recent SWT release(3.0M3). Maybe it's related to the
similar problem(#43788) I've reported?
Comment 8 Billy Biggs CLA 2005-06-22 21:57:33 EDT
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 ***