]> git.saurik.com Git - wxWidgets.git/commitdiff
Fixed bug whereby sash would disappear under left hand pane
authorJulian Smart <julian@anthemion.co.uk>
Thu, 26 Jun 2008 10:55:46 +0000 (10:55 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Thu, 26 Jun 2008 10:55:46 +0000 (10:55 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54371 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/html/helpwnd.cpp

index 8b159b2594f81c9706f038bce4a5479e82159c11..7c19a1e957487fdd4fb5e77c254278189aad59bd 100644 (file)
@@ -563,9 +563,10 @@ bool wxHtmlHelpWindow::Create(wxWindow* parent, wxWindowID id,
     // showtime
     if ( m_NavigPan && m_Splitter )
     {
-        m_Splitter->SetMinimumPaneSize(20);
-        if ( m_Cfg.navig_on )
-            m_Splitter->SplitVertically(m_NavigPan, m_HtmlWin, m_Cfg.sashpos);
+        if (m_NavigPan)
+            m_Splitter->SetMinimumPaneSize(m_NavigPan->GetBestSize().x);
+        else
+            m_Splitter->SetMinimumPaneSize(20);
 
         if ( m_Cfg.navig_on )
         {