]> git.saurik.com Git - wxWidgets.git/commitdiff
Removed no longer needed code to fix combo sizing (causes layout problems on Windows)
authorJulian Smart <julian@anthemion.co.uk>
Mon, 2 Jan 2006 14:28:37 +0000 (14:28 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Mon, 2 Jan 2006 14:28:37 +0000 (14:28 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36624 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/dirctrlg.cpp

index 7eb65be47a632114c8b108d48ef041ed70543749..d67468d8c1d0a74d1aa5a0f18f4ad3c69c727f07 100644 (file)
@@ -1190,22 +1190,6 @@ void wxGenericDirCtrl::DoResize()
         wxSize filterSz ;
         if (m_filterListCtrl)
         {
-#ifdef __WXMSW__
-            // For some reason, this is required in order for the
-            // correct control height to always be returned, rather
-            // than the drop-down list height which is sometimes returned.
-            wxSize oldSize = m_filterListCtrl->GetSize();
-            m_filterListCtrl->SetSize(wxDefaultCoord,
-                                      wxDefaultCoord,
-                                      oldSize.x+10,
-                                      wxDefaultCoord,
-                                      wxSIZE_USE_EXISTING);
-            m_filterListCtrl->SetSize(wxDefaultCoord,
-                                      wxDefaultCoord,
-                                      oldSize.x,
-                                      wxDefaultCoord,
-                                      wxSIZE_USE_EXISTING);
-#endif
             filterSz = m_filterListCtrl->GetSize();
             sz.y -= (filterSz.y + verticalSpacing);
         }