mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 16:45:03 +00:00
SystemMonitor: Shrink oversized GroupBox margins
Now that GroupBox reports accurate content margins, we don't need to account for the title height in internal layout margins.
This commit is contained in:
@@ -32,7 +32,7 @@ NetworkStatisticsWidget::NetworkStatisticsWidget()
|
||||
|
||||
auto& adapters_group_box = add<GUI::GroupBox>("Adapters");
|
||||
adapters_group_box.set_layout<GUI::VerticalBoxLayout>();
|
||||
adapters_group_box.layout()->set_margins({ 16, 6, 6 });
|
||||
adapters_group_box.layout()->set_margins(6);
|
||||
adapters_group_box.set_fixed_height(120);
|
||||
|
||||
m_adapter_table_view = adapters_group_box.add<GUI::TableView>();
|
||||
@@ -69,7 +69,7 @@ NetworkStatisticsWidget::NetworkStatisticsWidget()
|
||||
|
||||
auto& tcp_sockets_group_box = add<GUI::GroupBox>("TCP Sockets");
|
||||
tcp_sockets_group_box.set_layout<GUI::VerticalBoxLayout>();
|
||||
tcp_sockets_group_box.layout()->set_margins({ 16, 6, 6 });
|
||||
tcp_sockets_group_box.layout()->set_margins(6);
|
||||
|
||||
m_tcp_socket_table_view = tcp_sockets_group_box.add<GUI::TableView>();
|
||||
|
||||
@@ -90,7 +90,7 @@ NetworkStatisticsWidget::NetworkStatisticsWidget()
|
||||
|
||||
auto& udp_sockets_group_box = add<GUI::GroupBox>("UDP Sockets");
|
||||
udp_sockets_group_box.set_layout<GUI::VerticalBoxLayout>();
|
||||
udp_sockets_group_box.layout()->set_margins({ 16, 6, 6 });
|
||||
udp_sockets_group_box.layout()->set_margins(6);
|
||||
|
||||
m_udp_socket_table_view = udp_sockets_group_box.add<GUI::TableView>();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user