[gnome-games] ui: Reset scroll position when switching views



commit 41d62e6475e76210cbda57c0ebfe5e3612e428a1
Author: Alexander Mikhaylenko <exalm7659 gmail com>
Date:   Sat Aug 4 15:28:25 2018 +0500

    ui: Reset scroll position when switching views

 src/ui/collection-box.vala | 3 +++
 1 file changed, 3 insertions(+)
---
diff --git a/src/ui/collection-box.vala b/src/ui/collection-box.vala
index cc28c476..7df36578 100644
--- a/src/ui/collection-box.vala
+++ b/src/ui/collection-box.vala
@@ -110,6 +110,9 @@ private class Games.CollectionBox : Gtk.Box {
                else if (viewstack.visible_child == developer_view) {
                        developer_view.select_default_row ();
                }
+               else {
+                       collection_view.reset_scroll_position ();
+               }
        }
 
        [GtkCallback]


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