PDF viewer displays horizontal scroll bar while content still fits |
|||||||
Issue descriptionUserAgent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.71 Safari/537.36 Steps to reproduce the problem: 1. Open a PDF in Chrome. 2. ctrl-plus until a horizontal scrollbar appears. 3. Notice that there's still background on both left and right sides of the document. What is the expected behavior? Scroll bar appears after content no longer fits. Interestingly, you can zoom in further without a scrollbar when using the content fit button in the lower right corner than you can with ctrl-plus. What went wrong? Scroll bar appears prematurely, making it difficult to use left-and-right buttons as better versions of pgup and pgdn. Did this work before? N/A Chrome version: 54.0.2840.71 Channel: stable OS Version: Ubuntu 14.04 Flash Version: Shockwave Flash 23.0 r0
,
Nov 8 2016
Can you point to a specific PDF? Having trouble reproducing this.
,
Nov 8 2016
http://www.ti.com/lit/ds/slusah1c/slusah1c.pdf I suspect it's because there are some landscape pages near the end. Despite not being on-screen, their existence might be causing the scroll bar to show up.
,
Nov 8 2016
Your guess makes sense to me. It does feel a bit weird, but I suspect the exiting behavior is somewhat reasonable. There are some possible alternatives below, but they all have their own quirks. Consider this scenarios layout out as follows: 1) Start on a portrait page, with the next page as landscape (e.g. page 18 in your sample PDF) 2) Zoom in just enough so this bug reproduces 3) Scroll down to the landscape page 4) scroll back up to the portrait page If (1) starts with the horizontal scroll bar hidden, and (2) does not display the scroll bar when the landscape page cannot fit on the screen width-wise, then (3) can either: a) Display the scroll bar - but then it has to disappear when (4) happens. If the user pulled the scroll bar to left, does that mean it has to "snap" back to the middle when (4) occurs? b) Not display the scroll bar - some other PDF viewers like Okular do this. Then when one changes zoom, at that point it will decide a scroll bar is needed and one suddenly appears. This is also a bit quirky. In Acrobat Reader, if the user has not scrolled to page 19 with the landscape page, then Reader acts as though it does not know the landscape page exists. One can zoom to portrait fit-to-width at N% and press the left/right arrow... until Reader gets to page 19. Once Reader has displayed page 19, then the scroll bar appears at N% zoom and left/right arrow pans. There's no way to go back to the original state unless one close and reopen the document. This is also quirky.
,
Nov 8 2016
Yeah, it's not outrageous, but I do find it suboptimal. My preferred behavior would be for the scrollbar to only exist while the too-wide content is actually being rendered. It's especially lame on 5000-10000 page long reference manuals where I'm unlikely to ever even see the landscape pages.
,
Nov 8 2016
Sure, I understand your use case. Marking this as available.
,
Nov 8 2017
This issue has been Available for over a year. If it's no longer important or seems unlikely to be fixed, please consider closing it out. If it is important, please re-triage the issue. Sorry for the inconvenience if the bug really should have been left as Available. If you change it back, also remove the "Hotlist-Recharge-Cold" label. For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
,
Nov 13 2017
Looks like PE
,
Oct 12
|
|||||||
►
Sign in to add a comment |
|||||||
Comment 1 by rbasuvula@chromium.org
, Nov 1 2016Labels: M-56 OS-Windows
Status: Untriaged (was: Unconfirmed)