Hack to prevent single-line scintilla scrolling bug.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/19708
This commit is contained in:
Jeff Young 2025-06-08 18:31:05 +01:00
parent 70dfc9215d
commit ef473c2b01

View File

@ -201,6 +201,16 @@ void SCINTILLA_TRICKS::onModified( wxStyledTextEvent& aEvent )
} );
}
}
if( m_singleLine || m_te->GetCurrentLine() == 0 )
{
// 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 dodgy scrolling behaviour.
CallAfter( [this]()
{
m_te->ScrollToStart();
} );
}
}