[gnome-shell/wip/paging-release2: 10/14] FolderView: Start always at scroll 0
- From: Carlos Soriano <csoriano src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/wip/paging-release2: 10/14] FolderView: Start always at scroll 0
- Date: Thu, 22 Aug 2013 09:38:14 +0000 (UTC)
commit a576cae78ad23be8ceea079abee544b024356259
Author: Carlos Soriano <carlos soriano89 gmail com>
Date: Mon Aug 19 17:01:45 2013 +0200
FolderView: Start always at scroll 0
Reset the scroll adjustment between popups opennings,
following the same design we want to the AllView
js/ui/appDisplay.js | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/js/ui/appDisplay.js b/js/ui/appDisplay.js
index 435377f..8825c44 100644
--- a/js/ui/appDisplay.js
+++ b/js/ui/appDisplay.js
@@ -1022,6 +1022,10 @@ const FolderView = new Lang.Class({
// doesn't go outside boundary, so we have to take into account the
// arrow size, the padding of the boxpointer and the close button displacement
this._boxPointerOffsets = boxPointerOffsets;
+ },
+
+ setScrollToStart: function() {
+ this.actor.vscroll.adjustment.value = 0;
}
});
@@ -1060,6 +1064,7 @@ const FolderIcon = new Lang.Class({
function() {
this._ensurePopup();
this._popup.toggle();
+ this.view.setScrollToStart();
}));
this.actor.connect('notify::mapped', Lang.bind(this,
function() {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]