mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-13 01:59:14 +03:00
GTextEditor: Hide the horizontal scrollbar when line-wrapping is on
This commit is contained in:
parent
906582d8df
commit
77a58119e7
Notes:
sideshowbarker
2024-07-19 12:25:30 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/77a58119e7b
@ -1419,6 +1419,7 @@ void GTextEditor::set_line_wrapping_enabled(bool enabled)
|
||||
return;
|
||||
|
||||
m_line_wrapping_enabled = enabled;
|
||||
horizontal_scrollbar().set_visible(!m_line_wrapping_enabled);
|
||||
update_content_size();
|
||||
recompute_all_visual_lines();
|
||||
update();
|
||||
|
Loading…
Reference in New Issue
Block a user