From 5d394242f22aca253b31c8ce3aaf25d07d5a1a8e Mon Sep 17 00:00:00 2001 From: yggverse Date: Sat, 6 Jul 2024 19:21:35 +0300 Subject: [PATCH] use set_propagate instead of pack --- src/Entity/Browser/Container/Tab/Page.php | 7 ++----- src/Entity/Browser/Container/Tab/Page/Content.php | 7 +++++++ 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/src/Entity/Browser/Container/Tab/Page.php b/src/Entity/Browser/Container/Tab/Page.php index 2b70a7f2..e41f8029 100644 --- a/src/Entity/Browser/Container/Tab/Page.php +++ b/src/Entity/Browser/Container/Tab/Page.php @@ -52,11 +52,8 @@ class Page $this ); - $this->gtk->pack_start( - $this->content->gtk, - true, - true, - 0 + $this->gtk->add( + $this->content->gtk ); // Init statusbar diff --git a/src/Entity/Browser/Container/Tab/Page/Content.php b/src/Entity/Browser/Container/Tab/Page/Content.php index fac86b4f..88f74c92 100644 --- a/src/Entity/Browser/Container/Tab/Page/Content.php +++ b/src/Entity/Browser/Container/Tab/Page/Content.php @@ -31,6 +31,13 @@ class Content $this->_margin ); + $this->gtk->set_propagate_natural_height( + true + ); + $this->gtk->set_propagate_natural_width( + true + ); + $this->gtk->set_margin_end( $this->_margin );