1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 00:47:36 +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:
Andreas Kling 2021-11-13 11:47:46 +01:00
parent 6fe37a1e52
commit ea8c6e796f
2 changed files with 7 additions and 7 deletions

View file

@ -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>();