mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-09-14 02:03:12 +02:00
Revert previous hack. Alex has something better on the way....
This commit is contained in:
parent
5e337567d4
commit
5fe8763513
@ -200,13 +200,6 @@ void SCINTILLA_TRICKS::onModified( wxStyledTextEvent& aEvent )
|
||||
m_te->GotoPos( currpos-1 );
|
||||
} );
|
||||
}
|
||||
|
||||
// If the font is larger than the height of a single-line text box we can get issues
|
||||
// with the text disappearing every other character due to scrolling.
|
||||
CallAfter( [this]()
|
||||
{
|
||||
m_te->ScrollToStart();
|
||||
} );
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -76,7 +76,14 @@ DIALOG_FIELD_PROPERTIES::DIALOG_FIELD_PROPERTIES( SCH_BASE_FRAME* aParent, const
|
||||
|
||||
m_StyledTextCtrl->SetEOLMode( wxSTC_EOL_LF ); // Normalize EOL across platforms
|
||||
|
||||
#ifdef __WXMAC__
|
||||
#ifdef __WXGTK__
|
||||
m_StyledTextCtrl->SetExtraAscent( 6 );
|
||||
m_StyledTextCtrl->SetExtraDescent( 2 );
|
||||
#elif defined ( __WXMSW__ )
|
||||
// Do nothing: SetExtraAscent() + SetExtraDescent(), when set to a value not 0
|
||||
// Generate a strange bug: the text is not always shown (Perhaps a wxMSW bug)
|
||||
// and this call is not needed on WXMSW
|
||||
#else
|
||||
m_StyledTextCtrl->SetExtraAscent( 1 );
|
||||
m_StyledTextCtrl->SetExtraDescent( 2 );
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user