[gnome-shell/wip/paging-release: 76/85] Fixed special folder view case when folder icon is in the last page, there's empty rows, but the ico



commit 56e574d2369a691263e3261efddc129ae0d1fd52
Author: Carlos Soriano <carlos soriano89 gmail com>
Date:   Sun Jul 28 18:08:12 2013 +0200

    Fixed special folder view case when folder icon is in the last page,
    there's empty rows, but the icon folder has to expand up.

 js/ui/appDisplay.js |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/js/ui/appDisplay.js b/js/ui/appDisplay.js
index fd1a094..e750c94 100644
--- a/js/ui/appDisplay.js
+++ b/js/ui/appDisplay.js
@@ -264,10 +264,10 @@ const AppPages = new Lang.Class({
                 panViewUpNRows = folderNVisibleRowsAtOnce - rowsDown.length - emptyRows;
             }
         }
-        // Especial case, last page and only one row, no rows down neither rows up, we call directly the
-        // popup
+        // Especial case, last page and no rows below the icon of the folder, no rows down neither rows up,
+        // we call directly the popup
         this.updateIconOpacities(true);
-        if(panViewDownNRows > 0 && rowsDown.length == 0) {
+        if(panViewDownNRows > 0 && rowsDown.length == 0 && rowsUp.length == 0) {
             this.displayingPopup = true;
             this._popupExpansionNeeded = false;
             iconActor.onCompleteMakeSpaceForPopUp();            


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