From 7264e9a13d16810a1c2844de05e34db9392d459d Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Thu, 5 Mar 2009 15:54:25 +0000 Subject: [PATCH] Don't set a large minimum pane size; the splitter should take account of the minimum size anyway. Having a large minimum size (for both panes) can cause problems when both panes are small. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@59342 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/html/helpwnd.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/html/helpwnd.cpp b/src/html/helpwnd.cpp index c5a00071a9..55274edfbc 100644 --- a/src/html/helpwnd.cpp +++ b/src/html/helpwnd.cpp @@ -563,10 +563,12 @@ bool wxHtmlHelpWindow::Create(wxWindow* parent, wxWindowID id, // showtime if ( m_NavigPan && m_Splitter ) { - if (m_NavigPan) - m_Splitter->SetMinimumPaneSize(m_NavigPan->GetBestSize().x); - else - m_Splitter->SetMinimumPaneSize(20); + // The panel will have its own min size which the splitter + // should respect + //if (m_NavigPan) + // m_Splitter->SetMinimumPaneSize(m_NavigPan->GetBestSize().x); + //else + m_Splitter->SetMinimumPaneSize(20); if ( m_Cfg.navig_on ) {