set by default any longer
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28018
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
: wxTextCtrl( cb , 1 )
{
m_cb = cb;
: wxTextCtrl( cb , 1 )
{
m_cb = cb;
-
- // remove the default minsize, the combobox will have one instead
- SetSizeHints(-1,-1);
: wxChoice( cb , 1 )
{
m_cb = cb;
: wxChoice( cb , 1 )
{
m_cb = cb;
-
- // remove the default minsize, the combobox will have one instead
- SetSizeHints(-1,-1);
wxSize wxComboBox::DoGetBestSize() const
{
wxSize wxComboBox::DoGetBestSize() const
{
- if (!m_choice || !m_text)
+ if (!m_choice && !m_text)
return GetSize();
wxSize size = m_choice->GetBestSize();
return GetSize();
wxSize size = m_choice->GetBestSize();
}
m_choice = new wxComboBoxChoice(this, style );
}
m_choice = new wxComboBoxChoice(this, style );
- m_choice->SetSizeHints( wxSize( POPUPWIDTH , POPUPHEIGHT ) ) ;
wxSize csize = size;
if ( style & wxCB_READONLY )
{
wxSize csize = size;
if ( style & wxCB_READONLY )
{
m_choice->DoAppend( choices[ i ] );
}
m_choice->DoAppend( choices[ i ] );
}
- SetBestSize(csize); // Needed because it is a wxControlWithItems
+ SetBestSize(size); // Needed because it is a wxControlWithItems