mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-04 13:30:31 +00:00
GTextEditor: Set the vertical scrollbar step size to the line height.
This makes us scroll one line at a time.
This commit is contained in:
parent
1d7b89cd1c
commit
0ece5fee14
Notes:
sideshowbarker
2024-07-19 13:42:08 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/0ece5fee14d
1 changed files with 2 additions and 0 deletions
|
@ -22,6 +22,8 @@ GTextEditor::GTextEditor(Type type, GWidget* parent)
|
|||
set_frame_thickness(2);
|
||||
set_scrollbars_enabled(is_multi_line());
|
||||
set_font(GFontDatabase::the().get_by_name("Csilla Thin"));
|
||||
// FIXME: Recompute vertical scrollbar step size on font change.
|
||||
vertical_scrollbar().set_step(line_height());
|
||||
m_lines.append(make<Line>());
|
||||
m_cursor = { 0, 0 };
|
||||
create_actions();
|
||||
|
|
Loading…
Reference in a new issue