[gnome-shell/wip/paging-release2: 5/9] 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: 5/9] FolderView: start always at scroll 0
- Date: Mon, 19 Aug 2013 18:02:29 +0000 (UTC)
commit acb6fab1043dc0c2bd068ef8c77c81069576cd44
Author: Carlos Soriano <carlos soriano89 gmail com>
Date: Mon Aug 19 17:01:45 2013 +0200
FolderView: start always at scroll 0
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 156edd3..4b41f41 100644
--- a/js/ui/appDisplay.js
+++ b/js/ui/appDisplay.js
@@ -991,6 +991,10 @@ const FolderView = new Lang.Class({
//Then, we can only show that rows least one.
maxRowsPerPage -= 1;
return maxRowsPerPage;
+ },
+
+ setScrollToStart: function() {
+ this.actor.vscroll.adjustment.value = 0;
}
});
@@ -1023,6 +1027,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]