[gnome-shell/wip/paging-release: 42/90] fixed some thigns about testing



commit c1df323756a012cf2ce77bc8824c7da59806de03
Author: Carlos Soriano <carlos soriano89 gmail com>
Date:   Fri Jul 12 12:44:20 2013 +0200

    fixed some thigns about testing

 js/ui/appDisplay.js |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/js/ui/appDisplay.js b/js/ui/appDisplay.js
index 2fdbabd..1cdffef 100644
--- a/js/ui/appDisplay.js
+++ b/js/ui/appDisplay.js
@@ -1120,8 +1120,9 @@ const FolderView = new Lang.Class({
             if (!id)
                 continue;
             //FIXME
+            //this._grid.addItem(this._items[id + 1].actor);
             this._grid.addItem(this._items[id].actor);
-            this._grid.addItem(this._items[id + 1].actor);
+            
         }
     },
     
@@ -1129,6 +1130,7 @@ const FolderView = new Lang.Class({
         this._appDisplayWidth = width;
         this._appDisplayHeight = height;
         // Update grid dinamyc spacing based on display width
+        //FIXME
         let spacing = this._grid.maxSpacingForWidthHeight(width, 872, MIN_COLUMNS, MIN_ROWS, true);
         this._grid.setSpacing(spacing);
         global.log("ON UPDATE");
@@ -1143,10 +1145,11 @@ const FolderView = new Lang.Class({
         this._grid.left_padding = spacing;
         this._grid.right_padding = spacing;
         let boxPointerTotalOffset;
+        /*
         if(this.nRowsDisplayedAtOnce() == this.maxRowsDisplayedAtOnce())
             boxPointerTotalOffset = this._boxPointerOffsets['arrowHeight'] + 
this._boxPointerOffsets['padding'] * 2 + this._boxPointerOffsets['closeButtonOverlap'];
         else
-            boxPointerTotalOffset = this._boxPointerOffsets['arrowHeight'] + 
this._boxPointerOffsets['padding'] * 2;
+            boxPointerTotalOffset = this._boxPointerOffsets['arrowHeight'] + 
this._boxPointerOffsets['padding'] * 2;*/
         //FIXME
         boxPointerTotalOffset = this._boxPointerOffsets['arrowHeight'] + this._boxPointerOffsets['padding'] 
* 2 + this._boxPointerOffsets['closeButtonOverlap'];
         let offsetForEachSide = Math.ceil(boxPointerTotalOffset / 2);


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