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:
parent
58106f57de
commit
088ae37541
2 changed files with 10 additions and 1 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue