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



commit 4504e739ca7604c3dc57db24a50af61f2f89db7e
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 fff331a..8260c5d 100644
--- a/js/ui/appDisplay.js
+++ b/js/ui/appDisplay.js
@@ -263,10 +263,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]