+wxSize wxComboBox::DoGetBestSize() const
+{
+ if( (GetWindowStyle() & wxCB_DROPDOWN) == wxCB_DROPDOWN ||
+ (GetWindowStyle() & wxCB_READONLY) == wxCB_READONLY )
+ {
+ wxSize items = GetItemsSize();
+ // FIXME arbitrary constants
+ return wxSize( ( items.x ? items.x + 50 : 120 ),
+ items.y + 10 );
+ }
+ else
+ return wxWindow::DoGetBestSize();
+}
+
+#endif // XmVersion < 2000