From f6c2ca475de7a5011edabfa27ea11c5562bb601f Mon Sep 17 00:00:00 2001 From: yggverse Date: Wed, 24 Jul 2024 20:27:54 +0300 Subject: [PATCH] operate with progressbar transparency, do not hide block with fixed height to prevent content block jumps --- src/Entity/Browser/Container/Page/Progressbar.php | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/src/Entity/Browser/Container/Page/Progressbar.php b/src/Entity/Browser/Container/Page/Progressbar.php index 066fd005..e4e6d7e0 100644 --- a/src/Entity/Browser/Container/Page/Progressbar.php +++ b/src/Entity/Browser/Container/Page/Progressbar.php @@ -31,10 +31,9 @@ class Progressbar // Init container $this->gtk = new GtkProgressBar; - /* Prevent global initiation - $this->gtk->set_no_show_all( - true - );*/ + $this->gtk->show(); // fixed block height, show always + + $this->gtk->set_opacity(0); // init transparently } public function start(): void @@ -49,14 +48,14 @@ class Progressbar public function show(): void { - $this->gtk->show(); // | set_opacity(1) + $this->gtk->set_opacity(1); // fixed block height, do not show() } public function hide(): void { $this->stop(); // make sure iterator get stopped - $this->gtk->hide(); // | set_opacity(0) + $this->gtk->set_opacity(0); // fixed block height, do not hide() } public function infinitive( @@ -67,7 +66,7 @@ class Progressbar // Init visible if ($show) { - $this->gtk->show(); + $this->show(); } // Activate iterator @@ -100,7 +99,7 @@ class Progressbar // Init visible if ($show) { - $this->gtk->show(); + $this->show(); } // Activate iterator