From 336ab671c05d4d3872cfedca51f839d62a5daca9 Mon Sep 17 00:00:00 2001 From: Kacper Paczos Date: Mon, 23 Oct 2023 23:47:42 +0200 Subject: [PATCH 1/2] Fixed calculate a sidePage height when it comes as standalone --- .../usr/share/cinnamon/cinnamon-settings/cinnamon-settings.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/files/usr/share/cinnamon/cinnamon-settings/cinnamon-settings.py b/files/usr/share/cinnamon/cinnamon-settings/cinnamon-settings.py index 29bbdbbada..10efb8983d 100755 --- a/files/usr/share/cinnamon/cinnamon-settings/cinnamon-settings.py +++ b/files/usr/share/cinnamon/cinnamon-settings/cinnamon-settings.py @@ -219,6 +219,7 @@ def go_to_sidepage(self, sidePage: SettingsWidgets.SidePage, user_action=True): m, n = widget.get_preferred_width() width += n self.top_bar.set_size_request(width + 20, -1) + self.calculate_bar_heights() self.maybe_resize(sidePage) def maybe_resize(self, sidePage): @@ -236,7 +237,8 @@ def maybe_resize(self, sidePage): use_height = sidePage.size + self.bar_heights + WIN_H_PADDING elif sidePage.size == -1: # Module requested the window to fit it (i.e. shrink the window if necessary) - use_height = total_height + use_height = total_height + self.bar_heights + WIN_H_PADDING + self.window.resize(WIN_WIDTH, use_height) From 6900f6ef4814fb07783035cbebf19684d0aa5fb0 Mon Sep 17 00:00:00 2001 From: claudiux <33965039+claudiux@users.noreply.github.com> Date: Thu, 26 Oct 2023 01:58:25 +0200 Subject: [PATCH 2/2] Update cinnamon-settings.py --- files/usr/share/cinnamon/cinnamon-settings/cinnamon-settings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/usr/share/cinnamon/cinnamon-settings/cinnamon-settings.py b/files/usr/share/cinnamon/cinnamon-settings/cinnamon-settings.py index 10efb8983d..6b6b4db38b 100755 --- a/files/usr/share/cinnamon/cinnamon-settings/cinnamon-settings.py +++ b/files/usr/share/cinnamon/cinnamon-settings/cinnamon-settings.py @@ -237,7 +237,7 @@ def maybe_resize(self, sidePage): use_height = sidePage.size + self.bar_heights + WIN_H_PADDING elif sidePage.size == -1: # Module requested the window to fit it (i.e. shrink the window if necessary) - use_height = total_height + self.bar_heights + WIN_H_PADDING + use_height = total_height + self.bar_heights self.window.resize(WIN_WIDTH, use_height)