[gnome-shell/wip/paging-release: 30/43] Don't remember collection view	scroll positions when between calls
- From: Carlos Soriano <csoriano src gnome org>
 
- To: commits-list gnome org
 
- Cc: 
 
- Subject: [gnome-shell/wip/paging-release: 30/43] Don't remember collection view	scroll positions when between calls
 
- Date: Tue, 13 Aug 2013 19:13:17 +0000 (UTC)
 
commit 4002838fbee39160e3ce28d07a66f19b8e6edebf
Author: Carlos Soriano <carlos soriano89 gmail com>
Date:   Wed Jul 24 19:07:03 2013 +0200
    Don't remember collection view scroll positions when between calls
 js/ui/appDisplay.js |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/js/ui/appDisplay.js b/js/ui/appDisplay.js
index 0e363cb..e6336eb 100644
--- a/js/ui/appDisplay.js
+++ b/js/ui/appDisplay.js
@@ -1302,6 +1302,10 @@ const FolderView = new Lang.Class({
         this._boxPointerOffsets['padding'] = padding;
         this._boxPointerOffsets['closeButtonOverlap'] = closeButtonOverlap;
         
+    },
+    
+    setScrollToStart: function() {
+        this.actor.vscroll.adjustment.value = 0;
     }
 });
 
@@ -1339,6 +1343,7 @@ const FolderIcon = new Lang.Class({
         this.actor.connect('clicked', Lang.bind(this,
             function() {
                 this._ensurePopup();
+                this.view.setScrollToStart();
             }));
         this.actor.connect('notify::mapped', Lang.bind(this,
             function() {
@@ -1475,7 +1480,6 @@ const FolderIcon = new Lang.Class({
         } else {
             
             this._boxPointerArrowside = this._calculateBoxPointerArrowSide();
-            global.log("arrow side " + this._boxPointerArrowside);
             if(!this._popup) {
                 this._popup = new AppFolderPopup(this, this._boxPointerArrowside);
                 this._parentView.addFolderPopup(this._popup);
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]