From f59507bbb46864053269da9c084a45a9d789b7e5 Mon Sep 17 00:00:00 2001 From: yggverse Date: Thu, 25 Jul 2024 02:33:27 +0300 Subject: [PATCH] fix margins --- src/Entity/Browser/Container/Page/Content.php | 4 ---- src/Entity/Browser/Container/Page/Progressbar.php | 6 +++++- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Entity/Browser/Container/Page/Content.php b/src/Entity/Browser/Container/Page/Content.php index fc40c22c..c7de0d92 100644 --- a/src/Entity/Browser/Container/Page/Content.php +++ b/src/Entity/Browser/Container/Page/Content.php @@ -43,10 +43,6 @@ class Content $this::MARGIN ); - $this->gtk->set_margin_bottom( - $this::MARGIN - ); - // Init scrolled window viewport $this->viewport = new Content\Viewport( $this diff --git a/src/Entity/Browser/Container/Page/Progressbar.php b/src/Entity/Browser/Container/Page/Progressbar.php index 9356f447..f1035a53 100644 --- a/src/Entity/Browser/Container/Page/Progressbar.php +++ b/src/Entity/Browser/Container/Page/Progressbar.php @@ -32,6 +32,10 @@ class Progressbar // Init container $this->gtk = new GtkProgressBar; + $this->gtk->set_margin_top( + $this::MARGIN / 4 + ); + $this->gtk->set_margin_start( $this::MARGIN ); @@ -41,7 +45,7 @@ class Progressbar ); $this->gtk->set_margin_bottom( - $this::MARGIN + $this::MARGIN / 4 ); $this->gtk->show(); // fixed block height, show always