From bea5c6f4e61127865e08604b7568a8840e3634cd Mon Sep 17 00:00:00 2001 From: "Jasper St. Pierre" Date: Thu, 1 Mar 2012 06:26:33 -0500 Subject: [PATCH] altTab: Fix scrolling This hack was part of the custom scroll view code that allowed for proper scrolling when the actor was near the screen edges. Since the port to St.ScrollView, it's unnecessary and downright wrong, causing portions of actors to be clipped. Remove it. https://bugzilla.gnome.org/show_bug.cgi?id=613194 --- js/ui/altTab.js | 8 -------- 1 file changed, 8 deletions(-) diff --git a/js/ui/altTab.js b/js/ui/altTab.js index 929f49428..fd5b941a1 100644 --- a/js/ui/altTab.js +++ b/js/ui/altTab.js @@ -813,14 +813,6 @@ const SwitcherList = new Lang.Class({ let primary = Main.layoutManager.primaryMonitor; let parentRightPadding = this.actor.get_parent().get_theme_node().get_padding(St.Side.RIGHT); - if (this.actor.allocation.x2 == primary.x + primary.width - parentRightPadding) { - if (this._squareItems) - childWidth = childHeight; - else { - let [childMin, childNat] = children[0].get_preferred_width(childHeight); - childWidth = childMin; - } - } for (let i = 0; i < children.length; i++) { if (this._items.indexOf(children[i]) != -1) {