From 77a58119e7bcc7e3007762400743c591bda5777d Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sun, 1 Sep 2019 20:34:50 +0200 Subject: [PATCH] GTextEditor: Hide the horizontal scrollbar when line-wrapping is on --- Libraries/LibGUI/GTextEditor.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Libraries/LibGUI/GTextEditor.cpp b/Libraries/LibGUI/GTextEditor.cpp index ba98dade9c..a2a695ae12 100644 --- a/Libraries/LibGUI/GTextEditor.cpp +++ b/Libraries/LibGUI/GTextEditor.cpp @@ -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();