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
Notes: sideshowbarker 2024-07-19 10:33:14 +09:00

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();
}