[gnome-shell/wip/rewindow: 16/17] workspacesView: Refactor thumb zooming out code
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/wip/rewindow: 16/17] workspacesView: Refactor thumb zooming out code
- Date: Mon, 20 Aug 2012 22:31:47 +0000 (UTC)
commit c1ff272b6ca61c96e1667f3f2ac7e9ec07d06ca1
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Wed Aug 8 17:21:19 2012 -0300
workspacesView: Refactor thumb zooming out code
js/ui/workspacesView.js | 13 ++++---------
1 files changed, 4 insertions(+), 9 deletions(-)
---
diff --git a/js/ui/workspacesView.js b/js/ui/workspacesView.js
index 7d907c6..08ed0ef 100644
--- a/js/ui/workspacesView.js
+++ b/js/ui/workspacesView.js
@@ -869,15 +869,10 @@ const WorkspacesDisplay = new Lang.Class({
let clipX = rtl ? x + controlsVisible : x;
let clipY = y + (fullHeight - clipHeight) / 2;
- if (this._zoomOut) {
- width -= controlsNatural;
- if (rtl)
- x += controlsNatural;
- } else {
- width -= controlsVisible;
- if (rtl)
- x += controlsVisible;
- }
+ let widthAdjust = this._zoomOut ? controlsNatural : controlsVisible;
+ width -= widthAdjust;
+ if (rtl)
+ x += widthAdjust;
let monitors = Main.layoutManager.monitors;
let m = 0;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]