1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 21:58:12 +00:00

LibGUI: Reflow+update TextEditor widget after ruler visibility change

This commit is contained in:
Andreas Kling 2021-04-10 00:09:44 +02:00
parent 58106f57de
commit 088ae37541
2 changed files with 10 additions and 1 deletions

View file

@ -1806,4 +1806,13 @@ int TextEditor::number_of_visible_lines() const
return visible_content_rect().height() / line_height();
}
void TextEditor::set_ruler_visible(bool visible)
{
if (m_ruler_visible == visible)
return;
m_ruler_visible = visible;
recompute_all_visual_lines();
update();
}
}