Browser: Remove padding from the main TabWidget

This makes the active tab "take over" the whole window UI, even though
it's actually inside a TabWidget.
This commit is contained in:
Andreas Kling 2020-04-24 20:30:51 +02:00
parent 1587b53001
commit dfe8dea2ac
Notes: sideshowbarker 2024-07-19 07:19:40 +09:00
2 changed files with 2 additions and 2 deletions

View file

@ -63,8 +63,7 @@ static const char* bookmarks_filename = "/home/anon/bookmarks.json";
Tab::Tab()
{
auto& widget = *this;
auto& layout = set_layout<GUI::VerticalBoxLayout>();
layout.set_margins({ 1, 1, 1, 1 });
set_layout<GUI::VerticalBoxLayout>();
bool bookmarksbar_enabled = true;

View file

@ -84,6 +84,7 @@ int main(int argc, char** argv)
widget.layout()->set_spacing(2);
auto& tab_widget = widget.add<GUI::TabWidget>();
tab_widget.set_container_padding(0);
tab_widget.on_change = [&](auto& active_widget) {
auto& tab = static_cast<Browser::Tab&>(active_widget);