From e0cf6f3cf0e4b970b33c4ee5fe944f221fa85a91 Mon Sep 17 00:00:00 2001 From: Marcus Nilsson Date: Tue, 15 Jun 2021 20:00:53 +0200 Subject: [PATCH] TextEditor: Reset editor width when disabling preview mode When disabling preview mode, reset the fixed width of m_editor so that it fills out the window again even after resizing the splitter. --- Userland/Applications/TextEditor/MainWidget.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Userland/Applications/TextEditor/MainWidget.cpp b/Userland/Applications/TextEditor/MainWidget.cpp index cee46407ca..77b40b9cab 100644 --- a/Userland/Applications/TextEditor/MainWidget.cpp +++ b/Userland/Applications/TextEditor/MainWidget.cpp @@ -735,6 +735,7 @@ void MainWidget::set_preview_mode(PreviewMode mode) update_markdown_preview(); } else { m_no_preview_action->set_checked(true); + m_editor->set_fixed_width(-1); set_web_view_visible(false); } }