mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 23:50:19 +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
Notes:
sideshowbarker
2024-07-17 11:30:54 +09:00
Author: https://github.com/Optimoos 🔰 Commit: https://github.com/SerenityOS/serenity/commit/d856dae07c Pull-request: https://github.com/SerenityOS/serenity/pull/16621 Reviewed-by: https://github.com/AtkinsSJ
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& left_frame = splitter.add<GUI::Frame>();
|
||||
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->set_activates_on_selection(true);
|
||||
m_listview->set_model(HelpListModel::create());
|
||||
|
|
Loading…
Reference in a new issue