From f7196fbfb09864337a733dc7fc281ff66c28552a Mon Sep 17 00:00:00 2001 From: Rick Calixte <10281587+rcalixte@users.noreply.github.com> Date: Sat, 20 Jul 2024 02:04:35 -0400 Subject: [PATCH] Cinnamenu@json: Set clip_to_allocation to true Closes #6219 Ref: linuxmint/cinnamon#11123 --- Cinnamenu@json/files/Cinnamenu@json/5.8/appsview.js | 1 + Cinnamenu@json/files/Cinnamenu@json/5.8/categoriesview.js | 1 + Cinnamenu@json/files/Cinnamenu@json/5.8/sidebar.js | 1 + 3 files changed, 3 insertions(+) diff --git a/Cinnamenu@json/files/Cinnamenu@json/5.8/appsview.js b/Cinnamenu@json/files/Cinnamenu@json/5.8/appsview.js index 4c12ae79740..bf8f079cea0 100644 --- a/Cinnamenu@json/files/Cinnamenu@json/5.8/appsview.js +++ b/Cinnamenu@json/files/Cinnamenu@json/5.8/appsview.js @@ -417,6 +417,7 @@ class AppsView { () => { this.appThis.menu.passEvents = false; }); this.applicationsScrollBox.add_actor(this.applicationsBoxWrapper); this.applicationsScrollBox.set_policy(Gtk.PolicyType.NEVER, Gtk.PolicyType.AUTOMATIC); + this.applicationsScrollBox.set_clip_to_allocation(true); this.applicationsScrollBox.set_auto_scrolling(this.appThis.settings.enableAutoScroll); this.applicationsScrollBox.set_mouse_scrolling(true); this.appsViewSignals.connect(this.applicationsScrollBox, 'button-release-event', diff --git a/Cinnamenu@json/files/Cinnamenu@json/5.8/categoriesview.js b/Cinnamenu@json/files/Cinnamenu@json/5.8/categoriesview.js index 04a614aec4e..e3ebd1b3a53 100644 --- a/Cinnamenu@json/files/Cinnamenu@json/5.8/categoriesview.js +++ b/Cinnamenu@json/files/Cinnamenu@json/5.8/categoriesview.js @@ -265,6 +265,7 @@ class CategoriesView { new St.ScrollView({ style_class: 'vfade menu-categories-scrollbox' }); this.groupCategoriesWorkspacesScrollBox.add_actor(this.groupCategoriesWorkspacesWrapper); this.groupCategoriesWorkspacesScrollBox.set_policy(Gtk.PolicyType.NEVER, Gtk.PolicyType.NEVER); + this.groupCategoriesWorkspacesScrollBox.set_clip_to_allocation(true); this.groupCategoriesWorkspacesScrollBox.set_auto_scrolling(this.appThis.settings.enableAutoScroll); this.groupCategoriesWorkspacesScrollBox.set_mouse_scrolling(true); if (!this.appThis.settings.showCategories) { diff --git a/Cinnamenu@json/files/Cinnamenu@json/5.8/sidebar.js b/Cinnamenu@json/files/Cinnamenu@json/5.8/sidebar.js index 1ab28c94b91..64a4353dd5f 100644 --- a/Cinnamenu@json/files/Cinnamenu@json/5.8/sidebar.js +++ b/Cinnamenu@json/files/Cinnamenu@json/5.8/sidebar.js @@ -211,6 +211,7 @@ class Sidebar { this.sidebarScrollBox.add_actor(this.innerBox); this.sidebarScrollBox.set_policy(Gtk.PolicyType.NEVER, Gtk.PolicyType.NEVER); + this.sidebarScrollBox.set_clip_to_allocation(true); this.sidebarScrollBox.set_auto_scrolling(this.appThis.settings.enableAutoScroll); this.sidebarScrollBox.set_mouse_scrolling(true); const style_class = this.appThis.settings.useBoxStyle ? 'menu-favorites-box' : '';