[evince] libview: Do not use the spacing when setting the vertical scroll value in continuous mode



commit ebd6720ff337f55624707d425c5196e29d5fc331
Author: Carlos Garcia Campos <carlosgc gnome org>
Date:   Sun Mar 2 14:02:39 2014 +0100

    libview: Do not use the spacing when setting the vertical scroll value in continuous mode
    
    The y value received in scroll_to_point already contains the spacings.

 libview/ev-view.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/libview/ev-view.c b/libview/ev-view.c
index 0dacb6a..c71c1e5 100644
--- a/libview/ev-view.c
+++ b/libview/ev-view.c
@@ -542,8 +542,7 @@ scroll_to_point (EvView        *view,
 
                if (view->continuous) {
                        gtk_adjustment_clamp_page (view->vadjustment,
-                                                  y - view->spacing / 2,
-                                                  y + page_size);
+                                                  y, y + page_size);
                } else {
                        gtk_adjustment_set_value (view->vadjustment,
                                                  CLAMP (y, lower, upper - page_size));


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