Bug 366151 - Layout issue in DialogWizard only for first open after workbench start
Summary: Layout issue in DialogWizard only for first open after workbench start
Status: ASSIGNED
Alias: None
Product: RAP
Classification: RT
Component: JFace (show other bugs)
Version: 1.5   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-09 03:57 EST by Arnaud MERGEY CLA
Modified: 2011-12-09 09:28 EST (History)
0 users

See Also:


Attachments
First open with wrong layout (33.99 KB, image/jpeg)
2011-12-09 03:58 EST, Arnaud MERGEY CLA
no flags Details
Next open with good layout (43.04 KB, image/jpeg)
2011-12-09 03:59 EST, Arnaud MERGEY CLA
no flags Details
Snippet allowing to reproduce the issue (46.80 KB, application/octet-stream)
2011-12-09 04:00 EST, Arnaud MERGEY CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Arnaud MERGEY CLA 2011-12-09 03:57:53 EST
There are some wrong layouting in editors first time the workbench is launched. These issues gone after the first open 

Probably something related to GridLayout, for example in the attached snippet, the first time the dialog is opened it is not displayed correctly,
but for next opens it is fine. 

To reproduce it 

 - start attached snippet.scrolling
 - double click on one item of the left view
 - double click on one item in the opened editor.
 
In the dialog only the first group (define) is displayed because the height is greater than expected.
If you close the wizard and reopen it, the dialog is displayed as expected. The issue only occurs for the first open of the dialog.
To have the issue again, the applicatio needs to be restarted

This issue and the one described in 344835 are probably related as it is also a "first open issue". In 344835, there is a workaround, here I have not find yet a way to workaround the issue.

The issue occurs with 1.4.1 and 1.5 M3
Comment 1 Arnaud MERGEY CLA 2011-12-09 03:58:55 EST
Created attachment 208142 [details]
First open with wrong layout
Comment 2 Arnaud MERGEY CLA 2011-12-09 03:59:41 EST
Created attachment 208143 [details]
Next open with good layout
Comment 3 Arnaud MERGEY CLA 2011-12-09 04:00:30 EST
Created attachment 208144 [details]
Snippet allowing to reproduce the issue
Comment 4 Ivan Furnadjiev CLA 2011-12-09 09:28:06 EST
This is a typical text size determination issue. The wizards dimensions are calculated with the estimated font size and never resized to the actual size.