From 1a27f285ca48666026943251e28f7c769b555d96 Mon Sep 17 00:00:00 2001 From: gambas Date: Mon, 19 Apr 2021 14:03:19 +0200 Subject: [PATCH] SidePanel: Hidden side panels have now a one pixel size. [GB.FORM] * BUG: SidePanel: Hidden side panels have now a one pixel size. Because GTK+ components cannot handle zero-size controls at the moment. --- comp/src/gb.form/.src/SidePanel/FSidePanel.class | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/comp/src/gb.form/.src/SidePanel/FSidePanel.class b/comp/src/gb.form/.src/SidePanel/FSidePanel.class index 7c9324710..feaed93b3 100644 --- a/comp/src/gb.form/.src/SidePanel/FSidePanel.class +++ b/comp/src/gb.form/.src/SidePanel/FSidePanel.class @@ -568,7 +568,7 @@ Private Sub TogglePanel() If Application.Animations Then - $iTarget = If($bTransparent, 0, BUTTON_H) + $iTarget = If($bTransparent, 1, BUTTON_H) $hTimerAnim = New Timer As "TimerAnim" $hTimerAnim.Delay = 20