[gnome-shell/wip/paging-release: 89/93] Fixed empty space typo



commit b7dc196cee8c8983a657f7726aa266d26c5bea01
Author: Carlos Soriano <carlos soriano89 gmail com>
Date:   Sat Aug 3 10:47:46 2013 +0200

    Fixed empty space typo

 js/ui/appDisplay.js |   13 ++++++-------
 js/ui/iconGrid.js   |    6 ++----
 2 files changed, 8 insertions(+), 11 deletions(-)
---
diff --git a/js/ui/appDisplay.js b/js/ui/appDisplay.js
index b80832d..2b1c238 100644
--- a/js/ui/appDisplay.js
+++ b/js/ui/appDisplay.js
@@ -71,12 +71,12 @@ const AlphabeticalView = new Lang.Class({
     Abstract: true,
 
     _init: function(gridParams) {
-        gridParams = Params.parse(gridParams,  {xAlign: St.Align.MIDDLE,
-                                                columnLimit: MAX_COLUMNS,
-                                                minRows: MIN_ROWS,
-                                                minColumns: MIN_COLUMNS,
-                                                usePagination: false,
-                                                useSurroundingSpacing: false});
+        gridParams = Params.parse(gridParams,  { xAlign: St.Align.MIDDLE,
+                                                 columnLimit: MAX_COLUMNS,
+                                                 minRows: MIN_ROWS,
+                                                 minColumns: MIN_COLUMNS,
+                                                 usePagination: false,
+                                                 useSurroundingSpacing: false });
         this._grid = new IconGrid.IconGrid(gridParams);
 
         // Standard hack for ClutterBinLayout
@@ -138,7 +138,6 @@ const AppPages = new Lang.Class({
         this.actor = this._grid.actor;
         this._parent = parent;
         this._folderIcons = [];
-        this.doingTransitions = false;
         this._popupExpansionNeeded = true;
     },
 
diff --git a/js/ui/iconGrid.js b/js/ui/iconGrid.js
index 8594345..1b7f376 100644
--- a/js/ui/iconGrid.js
+++ b/js/ui/iconGrid.js
@@ -356,7 +356,7 @@ const IconGrid = new Lang.Class({
                         }
                     }
                 }
-                x = box.x1 + leftPadding + this.left_padding;
+                x = box.x1 + leftEmptySpace + this.left_padding;
             } else {
                 x += this.getHItemSize() + spacing;
             }
@@ -388,9 +388,7 @@ const IconGrid = new Lang.Class({
         this._spaceBetweenPages = availHeightPerPage - (this._rowsPerPage * (this.getVItemSize() + spacing) 
- spacing);
         this._spaceBetweenPagesTotal = this._spaceBetweenPages * (this._nPages);
         this._childrenPerPage = nColumns * this._rowsPerPage;
-        
-        global.log("nPages "  + this._nPages);
-        global.log("availHeightPerPage, availWidthPerPage")
+
         // Take into account when the number of pages changed (then the height of the entire grid changed 
for sure)
         // and also when the spacing is changed, sure the hegiht per page changed and the entire grid height 
changes, althougt
         // maybe the number of pages doesn't change


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]