Revert previous hack. Alex has something better on the way....

This commit is contained in:
Jeff Young 2025-05-28 18:17:13 +01:00
parent 5e337567d4
commit 5fe8763513
2 changed files with 8 additions and 8 deletions

View File

@ -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();
} );
}
}

View File

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