[ 1492036 ] Fix incorrect wxComboCtrl minimum size.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39251 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -150,8 +150,8 @@ bool wxGenericComboControl::Create(wxWindow *parent,
|
|||||||
if ( !wxComboCtrlBase::Create(parent,
|
if ( !wxComboCtrlBase::Create(parent,
|
||||||
id,
|
id,
|
||||||
value,
|
value,
|
||||||
wxDefaultPosition,
|
pos,
|
||||||
wxDefaultSize,
|
size,
|
||||||
style | wxFULL_REPAINT_ON_RESIZE,
|
style | wxFULL_REPAINT_ON_RESIZE,
|
||||||
wxDefaultValidator,
|
wxDefaultValidator,
|
||||||
name) )
|
name) )
|
||||||
@@ -166,8 +166,8 @@ bool wxGenericComboControl::Create(wxWindow *parent,
|
|||||||
// Set background
|
// Set background
|
||||||
SetBackgroundStyle( wxBG_STYLE_CUSTOM ); // for double-buffering
|
SetBackgroundStyle( wxBG_STYLE_CUSTOM ); // for double-buffering
|
||||||
|
|
||||||
// SetSize should be called last
|
// SetBestSize should be called last
|
||||||
SetSize(pos.x,pos.y,size.x,size.y);
|
SetBestSize(size);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
/////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
// Name: combo.cpp
|
// Name: src/msw/combo.cpp
|
||||||
// Purpose: wxMSW wxComboCtrl
|
// Purpose: wxMSW wxComboCtrl
|
||||||
// Author: Jaakko Salli
|
// Author: Jaakko Salli
|
||||||
// Modified by:
|
// Modified by:
|
||||||
@@ -121,8 +121,8 @@ bool wxComboCtrl::Create(wxWindow *parent,
|
|||||||
if ( !wxComboCtrlBase::Create(parent,
|
if ( !wxComboCtrlBase::Create(parent,
|
||||||
id,
|
id,
|
||||||
value,
|
value,
|
||||||
wxDefaultPosition,
|
pos,
|
||||||
wxDefaultSize,
|
size,
|
||||||
style | wxFULL_REPAINT_ON_RESIZE,
|
style | wxFULL_REPAINT_ON_RESIZE,
|
||||||
wxDefaultValidator,
|
wxDefaultValidator,
|
||||||
name) )
|
name) )
|
||||||
@@ -140,8 +140,8 @@ bool wxComboCtrl::Create(wxWindow *parent,
|
|||||||
// Prepare background for double-buffering
|
// Prepare background for double-buffering
|
||||||
SetBackgroundStyle( wxBG_STYLE_CUSTOM );
|
SetBackgroundStyle( wxBG_STYLE_CUSTOM );
|
||||||
|
|
||||||
// SetSize should be called last
|
// SetBestSize should be called last
|
||||||
SetSize(pos.x,pos.y,size.x,size.y);
|
SetBestSize(size);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user