From 27585bf2c3f0366153c1aa3e7102959f466039b3 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Fri, 22 Dec 2023 17:40:00 +0100 Subject: [PATCH] Hardcode minimal widget sample notebook size Not doing this resulted in the window being tiny by default, so it's better than nothing, even if it's clearly still not ideal. See #24154. --- samples/widgets/widgets.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/samples/widgets/widgets.cpp b/samples/widgets/widgets.cpp index c2cb886adc..263e8ddac5 100644 --- a/samples/widgets/widgets.cpp +++ b/samples/widgets/widgets.cpp @@ -506,8 +506,9 @@ WidgetsFrame::WidgetsFrame(const wxString& title) // Uncomment to suppress page theme (draw in solid colour) //style |= wxNB_NOPAGETHEME; + // Give it some reasonably big minimal size by default. m_book = new WidgetsBookCtrl(m_panel, Widgets_BookCtrl, - wxDefaultPosition, wxDefaultSize, + wxDefaultPosition, FromDIP(wxSize(900, 500)), style, "Widgets"); InitBook();