From 5094f750df273d1ecc5e1dab5409e44562c1837a Mon Sep 17 00:00:00 2001 From: Jeff Young <jeff@rokeby.ie> Date: Mon, 17 Mar 2025 17:30:51 +0000 Subject: [PATCH] Adjust GTK STC margins. Yes, again. Fixes https://gitlab.com/kicad/code/kicad/-/issues/16685 --- common/widgets/grid_text_helpers.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/common/widgets/grid_text_helpers.cpp b/common/widgets/grid_text_helpers.cpp index d576342f40..c41d6ba55d 100644 --- a/common/widgets/grid_text_helpers.cpp +++ b/common/widgets/grid_text_helpers.cpp @@ -128,7 +128,7 @@ void GRID_CELL_STC_EDITOR::SetSize( const wxRect& aRect ) #if defined( __WXMSW__ ) rect.Offset( -1, 1 ); #elif defined( __WXGTK__ ) - rect.Offset( -1, 1 ); + rect.Offset( -1, 3 ); #else rect.Offset( 1, 3 ); rect.SetHeight( rect.GetHeight() - 6 ); @@ -143,11 +143,6 @@ void GRID_CELL_STC_EDITOR::Create( wxWindow* aParent, wxWindowID aId, wxEvtHandl m_control = new wxStyledTextCtrl( aParent, wxID_ANY, wxDefaultPosition, wxSize( 0, 0 ), wxBORDER_NONE ); -#ifdef __WXGTK__ - stc_ctrl()->SetExtraAscent( 2 ); - stc_ctrl()->SetExtraDescent( 2 ); -#endif - stc_ctrl()->SetTabIndents( false ); stc_ctrl()->SetBackSpaceUnIndents( false ); stc_ctrl()->SetViewEOL( false );