#include "wx/frame.h"
#include "wx/dialog.h"
#include "wx/button.h"
+ #include "wx/scrolwin.h"
#endif
#include "wx/gbsizer.h"
XRC_ADD_STYLE(wxALIGN_CENTRE_VERTICAL);
XRC_ADD_STYLE(wxFIXED_MINSIZE);
+ XRC_ADD_STYLE(wxRESERVE_SPACE_EVEN_IF_HIDDEN);
}
wxXmlNode *nd = m_node;
m_node = parentNode;
if (GetSize() == wxDefaultSize)
- sizer->Fit(m_parentAsWindow);
+ {
+ if ( wxDynamicCast(m_parentAsWindow, wxScrolledWindow) != NULL )
+ {
+ sizer->FitInside(m_parentAsWindow);
+ }
+ else
+ {
+ sizer->Fit(m_parentAsWindow);
+ }
+ }
m_node = nd;
if (m_parentAsWindow->IsTopLevel())