From d856dae07c07d366082988f6df5daef2819c97ee Mon Sep 17 00:00:00 2001 From: Optimoos Date: Wed, 21 Dec 2022 22:42:38 -0500 Subject: [PATCH] Spreadsheet: Allow Functions Help HorizontalSplitter to resize Using set_fixed_width prevents the splitter from resizing, so it has been changed to set_preferred_width. Added a FIXME that I'm not familiar enough with the codebase to tackle yet. This addresses issue #16589 --- Userland/Applications/Spreadsheet/HelpWindow.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Userland/Applications/Spreadsheet/HelpWindow.cpp b/Userland/Applications/Spreadsheet/HelpWindow.cpp index eafe74c65e5..811ce6034a5 100644 --- a/Userland/Applications/Spreadsheet/HelpWindow.cpp +++ b/Userland/Applications/Spreadsheet/HelpWindow.cpp @@ -74,7 +74,8 @@ HelpWindow::HelpWindow(GUI::Window* parent) auto& splitter = widget.add(); auto& left_frame = splitter.add(); left_frame.set_layout(); - left_frame.set_fixed_width(100); + // FIXME: Get rid of the magic number, dynamically calculate initial size based on left frame contents + left_frame.set_preferred_width(100); m_listview = left_frame.add(); m_listview->set_activates_on_selection(true); m_listview->set_model(HelpListModel::create());