[evince] libview: Correct scale in best fit mode so no scrollbar appears.
- From: Jose Aliste <jaliste src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evince] libview: Correct scale in best fit mode so no scrollbar appears.
- Date: Mon, 12 Nov 2012 09:43:00 +0000 (UTC)
commit 4556e32c33f9b4cc07ab95bde58f18d659b078dc
Author: Josà Aliste <jaliste src gnome org>
Date: Mon Nov 5 21:13:41 2012 +0100
libview: Correct scale in best fit mode so no scrollbar appears.
In continuous mode best fit documents with one page, a scrollbar appears.
Modify the scale so this does not happen.
See https://bugzilla.gnome.org/show_bug.cgi?id=665856
libview/ev-view.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/libview/ev-view.c b/libview/ev-view.c
index f2fb1b1..a24e736 100644
--- a/libview/ev-view.c
+++ b/libview/ev-view.c
@@ -5485,7 +5485,7 @@ ev_view_zoom_for_size_continuous_and_dual_page (EvView *view,
doc_width *= 2;
width -= (2 * (border.left + border.right) + 3 * view->spacing);
- height -= (border.top + border.bottom + 2 * view->spacing - 1);
+ height -= (border.top + border.bottom + 2 * view->spacing);
sb_size = ev_view_get_scrollbar_size (view, GTK_ORIENTATION_VERTICAL);
@@ -5521,7 +5521,7 @@ ev_view_zoom_for_size_continuous (EvView *view,
compute_border (view, doc_width, doc_height, &border);
width -= (border.left + border.right + 2 * view->spacing);
- height -= (border.top + border.bottom + 2 * view->spacing - 1);
+ height -= (border.top + border.bottom + 2 * view->spacing);
sb_size = ev_view_get_scrollbar_size (view, GTK_ORIENTATION_VERTICAL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]