Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chrome extension: Add option/Default to collapse all items in outline #7713

Closed
jeenuv opened this issue Oct 12, 2016 · 4 comments
Closed

Chrome extension: Add option/Default to collapse all items in outline #7713

jeenuv opened this issue Oct 12, 2016 · 4 comments
Labels

Comments

@jeenuv
Copy link
Contributor

jeenuv commented Oct 12, 2016

Link to PDF file (or attach file here):

Configuration:

  • Web browser and its version: Chrome, 53.0
  • Operating system and its version: Linux
  • PDF.js version: 1.5.294
  • Is an extension: Yes

Steps to reproduce the problem:

  1. Open any PDF with table of contents, and the outline is displayed with everything expanded. For a file with large TOC, it takes a lot of scrolling to find/jump to the right item. This is exacerbated by the fact that outline width isn't adjustable, which means that the content wraps around, resulting in longer scrolls.

What is the expected behavior? (add screenshot)

Please add an option to, or make it the default behaviour that items in the outline start collapsed upon page load. In a stricter sense, only this will give an outline of the document! Users can later expand them as required.

To see how frustrating an expanded TOC is, try the ARM Architecture Manual for ARMv8 (login required) - it's 5000+ pages long, with a rather long and deep TOC.

@jeenu-arm
Copy link

Another alternative that comes to my mind is to offer a button to recursively expand/collapse a selected item in the TOC. When operated on top-level item thus expands/collapses the entire tree.

@Snuffleupagus
Copy link
Collaborator

Snuffleupagus commented Oct 13, 2016

It currently is very poorly (or not at all even) surfaced in the UI, but please note that as mentioned in the FAQ, you can double-click on the "Show document outline" button to expand/collapse all outline items.
Furthermore, again please see the FAQ, by pressing the Shift key while clicking on the triangles you can expand/collapse all items under it.

@jeenuv
Copy link
Contributor Author

jeenuv commented Oct 13, 2016

Ha! That was basically what I was after. I'd rather have that displayed on the tool tips. Let me see if I can get a patch through.

(My previous comment was left from an account that I use at work)

@timvandermeij
Copy link
Contributor

Fixed by #7717.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants