Bug 116197 - [Help] Help window for dialogs is very small
Summary: [Help] Help window for dialogs is very small
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: User Assistance (show other bugs)
Version: 3.1   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 3.2 M6   Edit
Assignee: Curtis d'Entremont CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-14 04:18 EST by Tobias Schwarz CLA
Modified: 2006-02-23 16:45 EST (History)
1 user (show)

See Also:


Attachments
patch (5.94 KB, patch)
2006-02-16 18:04 EST, Curtis d'Entremont CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Tobias Schwarz CLA 2005-11-14 04:18:37 EST
when i open a help window out of a displayed dialog, eg. by pressing F1, the 
help window is placed right to the dialog with the same hight as the parent 
dialog.

when doing this with very small dialogs, eg. an error dialog with an extended 
help feature, the help window is to small to be able to read the text.
the user first has to resize the help window.

is there any possibility to give a minimum hight to the opening help window?
perhaps the help window itself should have a minimum hight and so it is 
getting a little bit higher than a very small dialog.
Comment 1 Curtis d'Entremont CLA 2005-11-18 15:12:42 EST
Will be doing some work in this area for 3.2 so I'll take a look at this later 
on. Need to investigate our options for solving this one.. minimum height would 
work but wouldn't look very good, although I can't think of a better solution 
at the moment.
Comment 2 Dejan Glozic CLA 2006-01-25 11:46:02 EST
Curtis, I think it should be a combination of minimum height and resizable style of the dialog. We should only show the tray:

IF the dialog is taller than the minimum height OR the dialog has resizable SWT style

When the dialog has resizable style, users can make the dialog taller to compensate. Otherwise, we should simply show the yellow sticky.

This should work for both F1 and the new help button/link we are adding.
Comment 3 Curtis d'Entremont CLA 2006-02-16 18:04:40 EST
Created attachment 34884 [details]
patch

Here's the fix. Tray makes an attempt to bring the dialog height back to original. It will try to reduce the height by the same amount it was increased to fit the tray, unless the resulting height would be less than the original dialog height. In this case it will reduce no further than the original height. This can happen if, for example, you open the tray, make the dialog shorter, then close the tray. The resulting height will be the original.
Comment 4 Curtis d'Entremont CLA 2006-02-23 16:45:15 EST
Applied.