Bug 304418 - [Preferences] 'Label Decorations' preference page changes size depending on number of decorators
Summary: [Preferences] 'Label Decorations' preference page changes size depending on n...
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.6   Edit
Hardware: PC Windows XP
: P3 trivial (vote)
Target Milestone: ---   Edit
Assignee: Platform UI Triaged CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-03-02 15:42 EST by Troy Bishop CLA
Modified: 2019-09-06 16:16 EDT (History)
0 users

See Also:


Attachments
possible patch. (2.24 KB, patch)
2010-03-02 15:42 EST, Troy Bishop CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Troy Bishop CLA 2010-03-02 15:42:25 EST
Build Identifier: 

If an Eclipse-based product contributes a lot of decorators then the 'Label Decorations' preference page will expand vertically (when first opened) until either all of the label decorators are displayed or the maximum vertical size of the screen is hit.  The product I am using contributes > 40 decorators and as a result the preference page increase to the maximum vertical size of my screen.  As a result the 'description' field at the bottom is not initially visible.

A possible solution (for which I'll attach a patch) sets the heightHint for the label decorator field to 400 and the description field heightHint to 100.  I also made sure that the description text field is vertically scrollable in case a very long description is provided.  I'm not sure if this is the best solution but it seems to work fine for myself.

Reproducible: Always

Steps to Reproduce:
1. Use an Eclipse-based product that contributes a lot of decorators.
2. Click on Window > Preference > General > Appearance > Label Decorations
3. Notice that the preference page expands vertically until either all of the label decorators are displayed or the maximum vertical size of the screen is hit.
Comment 1 Troy Bishop CLA 2010-03-02 15:42:59 EST
Created attachment 160682 [details]
possible patch.
Comment 2 Eric Moffatt CLA 2010-04-05 14:23:09 EDT
I suspect that this is 'normal' behavior (i.e. preference pages opening to their 'optimal' size) so it may not be just this page that can cause such an effect. Perhaps we should just pick an upper limit to the width/height that is 75% (or so) of the display size.
Comment 3 Eclipse Webmaster CLA 2019-09-06 16:16:34 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.