Skip to content

Commit 091987a

Browse files
committed
Menu applet add workaround for tearing bug
github.com//issues/11760
1 parent 1201332 commit 091987a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

files/usr/share/cinnamon/applets/[email protected]/applet.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2742,8 +2742,11 @@ class CinnamonMenuApplet extends Applet.TextIconApplet {
27422742
this.categoriesBox = new St.BoxLayout({ style_class: 'menu-categories-box',
27432743
vertical: true,
27442744
accessible_role: Atk.Role.LIST });
2745+
// Add additional box with 0 padding as a workaround to bug github.com/linuxmint/cinnamon/issues/11760
2746+
this.categoriesBugfixBox = new St.BoxLayout({ style: 'padding: 0px; margin: 0px; spacing: 0px;' });
2747+
this.categoriesBugfixBox.add_actor(this.categoriesBox);
27452748
this.categoriesScrollBox = new St.ScrollView({ style_class: 'vfade menu-applications-scrollbox' });
2746-
this.categoriesScrollBox.add_actor(this.categoriesBox);
2749+
this.categoriesScrollBox.add_actor(this.categoriesBugfixBox);
27472750
this.categoriesScrollBox.set_policy(St.PolicyType.NEVER, St.PolicyType.AUTOMATIC);
27482751
this.categoriesScrollBox.set_clip_to_allocation(true);
27492752

0 commit comments

Comments
 (0)