mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-27 03:37:53 +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:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user