<table><tr><td style="">chinmoyr created this revision.<br />chinmoyr added reviewers: Okular, aacid.<br />Restricted Application added a project: Okular.<br />chinmoyr requested review of this revision.
</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/D12098">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>After going from high zoom to "Auto Fit" a resize event is generated and the resize event handler<br />
tries to refresh the page view. Sometimes this can result in an infinite resize loop. Okular<br />
fixes this by resizing the content area to the new viewport size. As a consequence both horizontal<br />
and vertical scroll range become zero. Now if "Auto Fit" turns out to be "Fit Page" then it is fine<br />
but in case of "Fit Width" or "Fit Height", where one scroll range should be non-zero, both scroll<br />
bar disappear resulting in a view which appears to be frozen. So to fix this add scroll range<br />
to the dimension for which the scroll bar should be visible and then resize. Since the scroll range<br />
remains constant, an infinite resize loop won't occur.</p>

<p>BUG: 341250</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>Zoom in 400% and then select "Auto Fit".</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R223 Okular</div></div></div><br /><div><strong>BRANCH</strong><div><div>master</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D12098">https://phabricator.kde.org/D12098</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>ui/pageview.cpp</div></div></div><br /><div><strong>To: </strong>chinmoyr, Okular, aacid<br /><strong>Cc: </strong>michaelweghorn, ngraham, aacid<br /></div>