1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-19 03:05:06 +00:00

LibGUI: Relayout GTextEditor on font change

Fixes #941.
This commit is contained in:
Andreas Kling 2019-12-29 23:03:41 +01:00
parent cdcab7e5f4
commit aaaf04f393

View file

@ -1351,6 +1351,8 @@ void GTextEditor::add_custom_context_menu_action(GAction& action)
void GTextEditor::did_change_font()
{
vertical_scrollbar().set_step(line_height());
recompute_all_visual_lines();
update();
GWidget::did_change_font();
}