[gnome-shell/wip/paging-release: 38/43] Fixed empty space typo



commit f61447f3a5a930fdb46578b7c233f9f21076cd63
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 db906cb..e9b6add 100644
--- a/js/ui/appDisplay.js
+++ b/js/ui/appDisplay.js
@@ -70,12 +70,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
@@ -137,7 +137,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 145058c..930c181 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]