FindPanel: Set the MIME type field to fixed width

...instead of based on the width of its contents which can make the window
grow too wide. Fixes #9719
This commit is contained in:
John Scipione
2013-04-29 22:25:12 -04:00
parent c80aa6e4bc
commit 3a12979db2
+3 -1
View File
@@ -862,7 +862,9 @@ FindPanel::FindPanel(BFile* node, FindWindow* parent, bool fromTemplate,
else
AddByAttributeItems(node);
ResizeMenuField(fMimeTypeField);
fMimeTypeField->SetExplicitSize(
BSize(be_control_look->DefaultItemSpacing() * 20, B_SIZE_UNSET));
// ResizeMenuField() makes fMimeTypeField too wide.
ResizeMenuField(searchModeField);
ResizeMenuField(volumeField);
}