mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-04-02 00:26:45 +00:00
Adjust GTK STC margins. Yes, again.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/16685
This commit is contained in:
parent
dd806aa902
commit
5094f750df
@ -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 );
|
||||
|
Loading…
Reference in New Issue
Block a user