← Back to team overview

qpdfview team mailing list archive

[Question #284216]: Losing context in continuous mode

 

New question #284216 on qpdfview:
https://answers.launchpad.net/qpdfview/+question/284216

Version 0.4.7
Reading pdf in single page + continuous mode. Apps bottom edge split last string at two parts, you see it's top part.  "Skip forward" action (PageDown) push you exactly at bottop edge and now you see only bottom part of string, but never a whole line. Skip backward behaves the same. I've duct taped it with:

diff -r 8d93ddbb578d documentview.cpp
--- a/documentview.cpp	Sun Jan 31 11:42:00 2016 +0300
+++ b/documentview.cpp	Sun Jan 31 11:42:29 2016 +0300
@@ -1183,6 +1183,15 @@
             }
         }
 
+        if(m_continuousMode) {
+
+            const int gap = 50;
+            if(maskedKey == Qt::Key_PageUp && m_currentPage != 1)
+                verticalScrollBar()->setValue(verticalScrollBar()->value()+gap);
+            else if(maskedKey == Qt::Key_PageDown && m_currentPage != m_layout->currentPage(m_pages.count()))
+                verticalScrollBar()->setValue(verticalScrollBar()->value()-gap);
+        }
+
         if(!m_continuousMode)
         {
             if(maskedKey == Qt::Key_PageUp && verticalScrollBar()->value() == verticalScrollBar()->minimum() && m_currentPage != 1)


-- 
You received this question notification because your team qpdfview is an
answer contact for qpdfview.