X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2437f26ca50fae0c76d3dddc85b0356755dda9fb..1012c2ceb610f2ee9339bb95193596038ea5c443:/src/generic/listbkg.cpp?ds=sidebyside diff --git a/src/generic/listbkg.cpp b/src/generic/listbkg.cpp index b82b9dde2f..c75120bd59 100644 --- a/src/generic/listbkg.cpp +++ b/src/generic/listbkg.cpp @@ -45,7 +45,7 @@ const wxCoord MARGIN = 5; // ---------------------------------------------------------------------------- -// various wxWindows macros +// various wxWidgets macros // ---------------------------------------------------------------------------- IMPLEMENT_DYNAMIC_CLASS(wxListbook, wxControl) @@ -117,7 +117,7 @@ wxListbook::Create(wxWindow *parent, m_line = new wxStaticLine ( this, - -1, + wxID_ANY, wxDefaultPosition, wxDefaultSize, IsVertical() ? wxLI_HORIZONTAL : wxLI_VERTICAL @@ -396,6 +396,7 @@ wxListbook::InsertPage(size_t n, page->Hide(); } + InvalidateBestSize(); return true; }