skip status bars in wxWindow::Fit
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6799 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -394,10 +394,11 @@ wxSize wxWindowBase::DoGetBestSize() const
|
|||||||
node = node->GetNext() )
|
node = node->GetNext() )
|
||||||
{
|
{
|
||||||
wxWindow *win = node->GetData();
|
wxWindow *win = node->GetData();
|
||||||
if ( win->IsTopLevel() )
|
if ( win->IsTopLevel() || wxDynamicCast(win, wxStatusBar) )
|
||||||
{
|
{
|
||||||
// dialogs and frames lie in different top level windows -
|
// dialogs and frames lie in different top level windows -
|
||||||
// don't deal with them here
|
// don't deal with them here; as for the status bars, they
|
||||||
|
// don't lie in the client area at all
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user