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.
This commit is contained in:
Jeff Young 2022-01-03 18:23:00 +00:00
parent 27fbdb27f2
commit 2fdbc41b8f
1 changed files with 0 additions and 17 deletions

View File

@ -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
}