mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 13:28:11 +00:00
Userland: Specify margins and spacing in the GUI::Layout constructor
This commit is contained in:
parent
9561ec15f4
commit
77ad0fdb07
64 changed files with 136 additions and 288 deletions
|
@ -305,7 +305,7 @@ SpreadsheetView::SpreadsheetView(Sheet& sheet)
|
|||
: m_sheet(sheet)
|
||||
, m_sheet_model(SheetModel::create(*m_sheet))
|
||||
{
|
||||
set_layout<GUI::VerticalBoxLayout>().set_margins(2);
|
||||
set_layout<GUI::VerticalBoxLayout>(2);
|
||||
m_table_view = add<InfinitelyScrollableTableView>();
|
||||
m_table_view->set_grid_style(GUI::TableView::GridStyle::Both);
|
||||
m_table_view->set_selection_behavior(GUI::AbstractView::SelectionBehavior::SelectItems);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue