X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/253b70f1aa1a32096d295896855cef4c00ac768c..64894596ea0351499a68849cb17233d2f16f850d:/src/propgrid/manager.cpp diff --git a/src/propgrid/manager.cpp b/src/propgrid/manager.cpp index cb2c519d70..e3487b5c80 100644 --- a/src/propgrid/manager.cpp +++ b/src/propgrid/manager.cpp @@ -1061,24 +1061,7 @@ void wxPropertyGridManager::RecalculatePositions( int width, int height ) #if wxUSE_TOOLBAR if ( m_pToolbar ) { - int tbHeight; - - #if ( wxMINOR_VERSION < 6 || (wxMINOR_VERSION == 6 && wxRELEASE_NUMBER < 2) ) - tbHeight = -1; - #else - // In wxWidgets 2.6.2+, Toolbar default height may be broken - #if defined(__WXMSW__) - tbHeight = 24; - #elif defined(__WXGTK__) - tbHeight = -1; // 22; - #elif defined(__WXMAC__) - tbHeight = 22; - #else - tbHeight = 22; - #endif - #endif - - m_pToolbar->SetSize(0,0,width,tbHeight); + m_pToolbar->SetSize(0, 0, width, -1); propgridY += m_pToolbar->GetSize().y; } #endif @@ -1208,6 +1191,7 @@ void wxPropertyGridManager::RecreateControls() wxDefaultPosition,wxDefaultSize, ((GetExtraStyle()&wxPG_EX_NO_FLAT_TOOLBAR)?0:wxTB_FLAT) /*| wxTB_HORIZONTAL | wxNO_BORDER*/ ); + m_pToolbar->SetToolBitmapSize(wxSize(16, 15)); #if defined(__WXMSW__) // Eliminate toolbar flicker on XP