Fixed bug whereby sash would disappear beneath left-hand pane

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@54370 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2008-06-26 10:55:16 +00:00
parent 185903c018
commit 770756327c
2 changed files with 8 additions and 3 deletions

View File

@@ -94,6 +94,10 @@ All:
All (GUI): All (GUI):
- Fixed help viewer bug whereby the splitter sash in wxHtmlHelpWindow could
go underneath the left-hand pane, permanently, after resizing the
help window.
All (Unix): All (Unix):
- MIME types reading fixed when running under GNOME, reading .desktop - MIME types reading fixed when running under GNOME, reading .desktop

View File

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