From 3d7772d0c6c9c9de707596bb9f0203db42472b20 Mon Sep 17 00:00:00 2001 From: Thanatomanic Date: Sun, 1 Jul 2018 13:47:42 +0200 Subject: [PATCH] The scrolling distance now takes into account the effective height of the thumbnail (including exif if necessary) --- rtgui/thumbbrowserbase.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rtgui/thumbbrowserbase.cc b/rtgui/thumbbrowserbase.cc index 802b1c5c5..e9a88cb2a 100644 --- a/rtgui/thumbbrowserbase.cc +++ b/rtgui/thumbbrowserbase.cc @@ -501,8 +501,8 @@ void ThumbBrowserBase::configScrollBars () vscroll.get_adjustment()->set_upper (inH); hscroll.get_adjustment()->set_lower (0); vscroll.get_adjustment()->set_lower (0); - hscroll.get_adjustment()->set_step_increment (getThumbnailHeight()); - vscroll.get_adjustment()->set_step_increment (getThumbnailHeight()); + hscroll.get_adjustment()->set_step_increment (fd[0]->getEffectiveHeight()); // Is it safe enough to assume fd[0] is accessible? There seems to be no other way to get the _actual_ height of the thumbnail. + vscroll.get_adjustment()->set_step_increment (fd[0]->getEffectiveHeight()); hscroll.get_adjustment()->set_page_increment (iw); vscroll.get_adjustment()->set_page_increment (ih); hscroll.get_adjustment()->set_page_size (iw);