Only scroll summaryview to the middle when necessary.
authorAndrej Kacian <ticho@claws-mail.org>
Sat, 5 Nov 2016 11:00:33 +0000 (12:00 +0100)
committerAndrej Kacian <ticho@claws-mail.org>
Sat, 5 Nov 2016 11:00:33 +0000 (12:00 +0100)
src/summaryview.c

index d80f4d3..fbc29bf 100644 (file)
@@ -2264,7 +2264,7 @@ void summary_select_node(SummaryView *summaryview, GtkCMCTreeNode *node,
                GTK_EVENTS_FLUSH();
                summary_unlock(summaryview);
                gtk_widget_grab_focus(GTK_WIDGET(ctree));
-               gtk_cmctree_node_moveto(ctree, node, 0, 0.5, 0);
+               gtkut_ctree_node_move_if_on_the_edge(ctree, node, -1);
 
                if (display_msg && summaryview->displayed == node)
                        summaryview->displayed = NULL;