<table><tr><td style="">tobiasdeiminger updated this revision to Diff 46029.<br />tobiasdeiminger added a comment.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D16941">View Revision</a></tr></table><br /><div><div><p>Add test to check PageView position after Document::setViewportPage</p>

<p>It basically checks the expected scrollbar displacement, because that's some public information accessible by the test method.</p>

<p>However few pixel depend on how big the empty grey space between pages is. That space is not easy to pre-calculate. So there is some "known-by-trial" portion in the expected value. I wonder if there's a better way?</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R223 Okular</div></div></div><br /><div><strong>CHANGES SINCE LAST UPDATE</strong><div><a href="https://phabricator.kde.org/D16941?vs=45688&id=46029">https://phabricator.kde.org/D16941?vs=45688&id=46029</a></div></div><br /><div><strong>BRANCH</strong><div><div>unify_vp_calc</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D16941">https://phabricator.kde.org/D16941</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>autotests/data/simple-multipage.pdf<br />
autotests/data/simple-multipage.tex<br />
autotests/parttest.cpp<br />
ui/pageview.cpp<br />
ui/pageview.h</div></div></div><br /><div><strong>To: </strong>tobiasdeiminger, Okular<br /><strong>Cc: </strong>sander, aacid, okular-devel, ngraham, darcyshen<br /></div>