Skip to content

Commit

Permalink
LibGUI: Relayout GTextEditor on font change
Browse files Browse the repository at this point in the history
  • Loading branch information
awesomekling committed Dec 29, 2019
1 parent cdcab7e commit aaaf04f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Libraries/LibGUI/GTextEditor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

Expand Down

0 comments on commit aaaf04f

Please sign in to comment.