summaryrefslogtreecommitdiff
path: root/Applications
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-04-24 20:30:51 +0200
committerAndreas Kling <kling@serenityos.org>2020-04-24 20:42:34 +0200
commitdfe8dea2acaae9aecb43af7143f01cbce6554a33 (patch)
tree017f3eebfea336c47184032fefebdfd50bc7f4ea /Applications
parent1587b530016f73c37fb60c11c7323794967cb979 (diff)
downloadserenity-dfe8dea2acaae9aecb43af7143f01cbce6554a33.zip
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.
Diffstat (limited to 'Applications')
-rw-r--r--Applications/Browser/Tab.cpp3
-rw-r--r--Applications/Browser/main.cpp1
2 files changed, 2 insertions, 2 deletions
diff --git a/Applications/Browser/Tab.cpp b/Applications/Browser/Tab.cpp
index 4a7b464d29..74d56fb405 100644
--- a/Applications/Browser/Tab.cpp
+++ b/Applications/Browser/Tab.cpp
@@ -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;
diff --git a/Applications/Browser/main.cpp b/Applications/Browser/main.cpp
index 4c8f1e1892..ed070eac7d 100644
--- a/Applications/Browser/main.cpp
+++ b/Applications/Browser/main.cpp
@@ -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);