Project: Eclipse_Platform_UI
Bug 20430 [Cell Editors] DialogCellEditor in the PropertySheet bases its width on its text rather than its cell's width
Reported: 2002-06-17 06:42:09 | Status: verified fixed

In the PropertySheetViewer we have properties that have DialogCellEditor and ComboCellEditor editors. With both of these the user will click the cell editor and then needs ot use the open dialog button or drop down combo button. The editor is created with the width of the contents ( for the combo editor this is the widest strings in the list of strings ) and the button is on the right of this. The problem our users have is that we have labels that are wider than the width of the values column and they click in the column and can't see the open / drop down editor button. Sometimes even scrolling doesn't bring it into view ( maybe a separate problem here to do with the size of the horizontal scroll bar ) and the only way of getting the button to become visible is to resize the whole property sheet to make the values column larger. I would expect that the editor width would just be the width of the values column so the button is always in view.

Files changed in fix:
bundles/org.eclipse.ui/Eclipse JFace/org/eclipse/jface/viewers/ComboBoxCellEditor.java