From 2fdbc41b8f33092eaaf37ce7bfcd1c5d9ec85b1c Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Mon, 3 Jan 2022 18:23:00 +0000 Subject: [PATCH] Remove macHack. Either the recently added size-event works better than the version I originally tried or it's simply no longer needed in wxWidgets 3.1. In any case, I can't reproduce the wxGrid layout errors anymore. --- common/widgets/paged_dialog.cpp | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/common/widgets/paged_dialog.cpp b/common/widgets/paged_dialog.cpp index f6409c5eda..89068552d8 100644 --- a/common/widgets/paged_dialog.cpp +++ b/common/widgets/paged_dialog.cpp @@ -346,23 +346,6 @@ void PAGED_DIALOG::OnPageChanged( wxBookCtrlEvent& event ) wxSizeEvent evt( wxDefaultSize ); wxQueueEvent( m_treebook, evt.Clone() ); - - // @todo Test to see if this macOS hack is still necessary now that a psuedo size event is - // processed above. - - // Work around an OSX bug where the wxGrid children don't get placed correctly until - // the first resize event -#ifdef __WXMAC__ - if( page + 1 <= m_macHack.size() && m_macHack[ page ] ) - { - wxSize pageSize = m_treebook->GetPage( page )->GetSize(); - pageSize.x -= 5; - pageSize.y += 2; - - m_treebook->GetPage( page )->SetSize( pageSize ); - m_macHack[ page ] = false; - } -#endif }