Bug 7581 - ComboBoxCellEditor does not size correctly in propery sheet
Summary: ComboBoxCellEditor does not size correctly in propery sheet
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 2.0   Edit
Hardware: PC other
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Ian Petersen CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-01-14 17:47 EST by Randy Giffen CLA
Modified: 2002-01-22 10:13 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Randy Giffen CLA 2002-01-14 17:47:28 EST
From EC


Joe Winchester <JoeWin@us.ibm.com> wrote in message 
news:3C407F76.31A82113@us.ibm.com...
> The PropertySheetViewer lets me edit objects using a set of row that are
> name value pairs in two columns, with each column being defined by an
> IPropertyDescriptor.  IPropertyDescriptor has a method to create a cell
> editor, and I use this to create editors that include ComboBoxCellEditor
> - constructor of which can be given the strings.  The editor appears in
> column two of the property sheet and the drop down button appears at the
> right edge of the column.  A problem occurs if any of my strings is
> wider that the width of the property sheet column.  It appears that the
> combo box grows to be the width of the largest item - the problem is
> that the drop down button may now be too far right and off the visible
> area of the property sheet so it is clipped.  From a user experience
> they can no longer see the combo drop down button without making the
> property sheet view wider until the button comes into the visible area.
> I would have expected behavior where the combo box is always the width
> of the property sheet column.  

Note that it should work the same DialogCellEditor (Button always visible)
Will need to investigate to determine if this is us or SWT.
Comment 1 Ian Petersen CLA 2002-01-22 10:13:20 EST
The ComboBoxCellEditor.getLayoutData() now returns a minimum width of 30 pixels 
instead of the length of the longest string in the its list.  This should keep 
the arrow button within the column most of the time.