X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1d156af3247c862e51a7c62f569a3fd302052a42..cd15bcaf50ead53ccf9d50965312f0dc754affb4:/samples/widgets/widgets.cpp?ds=sidebyside diff --git a/samples/widgets/widgets.cpp b/samples/widgets/widgets.cpp index 7e54947dbd..9d08c992c3 100644 --- a/samples/widgets/widgets.cpp +++ b/samples/widgets/widgets.cpp @@ -347,10 +347,6 @@ bool WidgetsApp::OnInit() title += wxT("wxMAC"); #elif defined(__WXMOTIF__) title += wxT("wxMOTIF"); -#elif defined(__WXPALMOS5__) - title += wxT("wxPALMOS5"); -#elif defined(__WXPALMOS6__) - title += wxT("wxPALMOS6"); #else title += wxT("wxWidgets"); #endif @@ -879,6 +875,10 @@ void WidgetsFrame::OnSetFont(wxCommandEvent& WXUNUSED(event)) (*it)->SetFont(m_font); (*it)->Refresh(); } + + // The best size of the widget could have changed after changing its font, + // so re-layout to show it correctly. + page->Layout(); #else wxLogMessage(wxT("Font selection dialog not available in current build.")); #endif