use the more appropriate letter 'h' for height
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@75689 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
eb1f6dd806
commit
7df4846118
@ -271,9 +271,9 @@ void wxCollapsiblePane::OnSize(wxSizeEvent &ev)
|
|||||||
|
|
||||||
// here we need to resize the pane window otherwise, even if the GtkExpander container
|
// here we need to resize the pane window otherwise, even if the GtkExpander container
|
||||||
// is expanded or shrunk, the pane window won't be updated!
|
// is expanded or shrunk, the pane window won't be updated!
|
||||||
int w = ev.GetSize().y - m_szCollapsed.y;
|
int h = ev.GetSize().y - m_szCollapsed.y;
|
||||||
if (w < 0) w = 0;
|
if (h < 0) h = 0;
|
||||||
m_pPane->SetSize(ev.GetSize().x, w);
|
m_pPane->SetSize(ev.GetSize().x, h);
|
||||||
|
|
||||||
// we need to explicitly call m_pPane->Layout() or else it won't correctly relayout
|
// we need to explicitly call m_pPane->Layout() or else it won't correctly relayout
|
||||||
// (even if SetAutoLayout(true) has been called on it!)
|
// (even if SetAutoLayout(true) has been called on it!)
|
||||||
|
Loading…
Reference in New Issue
Block a user