mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 02:17:34 +00:00
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
This commit is contained in:
parent
2b5d7a8a72
commit
d856dae07c
1 changed files with 2 additions and 1 deletions
|
@ -74,7 +74,8 @@ HelpWindow::HelpWindow(GUI::Window* parent)
|
||||||
auto& splitter = widget.add<GUI::HorizontalSplitter>();
|
auto& splitter = widget.add<GUI::HorizontalSplitter>();
|
||||||
auto& left_frame = splitter.add<GUI::Frame>();
|
auto& left_frame = splitter.add<GUI::Frame>();
|
||||||
left_frame.set_layout<GUI::VerticalBoxLayout>();
|
left_frame.set_layout<GUI::VerticalBoxLayout>();
|
||||||
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<GUI::ListView>();
|
m_listview = left_frame.add<GUI::ListView>();
|
||||||
m_listview->set_activates_on_selection(true);
|
m_listview->set_activates_on_selection(true);
|
||||||
m_listview->set_model(HelpListModel::create());
|
m_listview->set_model(HelpListModel::create());
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue