[gnome-shell/wip/paging-release: 37/85] Add commented testing to more or less items in collection at FolderView



commit d3374a800300ffac4305b532c3a8314e89154f6e
Author: Carlos Soriano <carlos soriano89 gmail com>
Date:   Fri Jul 12 12:42:46 2013 +0200

    Add commented testing to more or less items in collection at FolderView

 js/ui/appDisplay.js |   17 +++++++++++++----
 1 files changed, 13 insertions(+), 4 deletions(-)
---
diff --git a/js/ui/appDisplay.js b/js/ui/appDisplay.js
index a9490c2..2fdbabd 100644
--- a/js/ui/appDisplay.js
+++ b/js/ui/appDisplay.js
@@ -1065,8 +1065,8 @@ const FolderView = new Lang.Class({
 
     addApp: function(app) {
         //FIXME
-        if(this._allItems.length > 1)
-            return;
+        /*if(this._allItems.length > 20)
+            return;*/
         this._addItem(app);
     },
 
@@ -1099,10 +1099,15 @@ const FolderView = new Lang.Class({
         let id = this._getItemId(item);
         if (this._items[id] !== undefined)
             return null;
-
+        //FIXME
+      //let itemIcon2 = this._createItemIcon(item);
+      //this._allItems.push(item);
+        //this._items[id + 1] = itemIcon2;
         let itemIcon = this._createItemIcon(item);
+        
         this._allItems.push(item);
         this._items[id] = itemIcon;
+        
 
         return itemIcon;
     },
@@ -1114,7 +1119,9 @@ const FolderView = new Lang.Class({
             let id = this._getItemId(this._allItems[i]);
             if (!id)
                 continue;
+            //FIXME
             this._grid.addItem(this._items[id].actor);
+            this._grid.addItem(this._items[id + 1].actor);
         }
     },
     
@@ -1139,7 +1146,9 @@ const FolderView = new Lang.Class({
         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);
         this._grid.top_padding = spacing - offsetForEachSide;
         this._grid.bottom_padding = spacing - offsetForEachSide;


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