Community
Participate
Working Groups
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.
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.