mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 12:38:12 +00:00
GTextEditor: Hide the horizontal scrollbar when line-wrapping is on
This commit is contained in:
parent
906582d8df
commit
77a58119e7
1 changed files with 1 additions and 0 deletions
|
@ -1419,6 +1419,7 @@ void GTextEditor::set_line_wrapping_enabled(bool enabled)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
m_line_wrapping_enabled = enabled;
|
m_line_wrapping_enabled = enabled;
|
||||||
|
horizontal_scrollbar().set_visible(!m_line_wrapping_enabled);
|
||||||
update_content_size();
|
update_content_size();
|
||||||
recompute_all_visual_lines();
|
recompute_all_visual_lines();
|
||||||
update();
|
update();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue