mirror of
https://github.com/RGBCube/serenity
synced 2025-05-28 17:55:09 +00:00
LibGUI: Add a way for GWidget subclasses to learn that the font changed
Use this in GTextEditor to update the vertical scrolling step size so we always scroll one-line-at-a-time.
This commit is contained in:
parent
e7d15ccca4
commit
3e2e086011
4 changed files with 22 additions and 6 deletions
|
@ -1448,3 +1448,9 @@ void GTextEditor::add_custom_context_menu_action(GAction& action)
|
|||
{
|
||||
m_custom_context_menu_actions.append(action);
|
||||
}
|
||||
|
||||
void GTextEditor::did_change_font()
|
||||
{
|
||||
vertical_scrollbar().set_step(line_height());
|
||||
GWidget::did_change_font();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue