Remove macOS size tweak in custom grid cell editors.

Since the text field now has the no-border flag, it shouldn't be needed.
This commit is contained in:
Alex Shvartzkop 2024-04-13 03:52:33 +03:00
parent 953c285ff0
commit aa51cc5167
1 changed files with 1 additions and 7 deletions

View File

@ -59,13 +59,7 @@ wxString GRID_CELL_TEXT_BUTTON::GetValue() const
void GRID_CELL_TEXT_BUTTON::SetSize( const wxRect& aRect )
{
wxRect rect( aRect );
#if defined( __WXMAC__ )
rect.Inflate( 2 ); // ignore FOCUS_RING
#endif
Combo()->SetSize( rect, wxSIZE_ALLOW_MINUS_ONE );
Combo()->SetSize( aRect, wxSIZE_ALLOW_MINUS_ONE );
}