mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-09-14 02:03:12 +02:00
Hack to prevent single-line scintilla scrolling bug.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/19708
This commit is contained in:
parent
70dfc9215d
commit
ef473c2b01
@ -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();
|
||||
} );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user