question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Sidebar default behaviour

See original GitHub issue

The left sidebar seems to be closed by default for few pdfs and opened for few others? Is the tool taking some kind of decision on how it should be?

I had tried to close the sidebar always using the onDocumentLoad event, but the problem is, the side bar appears for a split second before being closed programmatically. Causing a flicker.

loadComplete() {
    this.pdfViewer.PDFViewerApplication.pdfSidebar.close(); //close the left nav by default.
}

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:9

github_iconTop GitHub Comments

1reaction
raykincommented, Aug 24, 2021

@anees-tricon well, I have no suggestions on your troubles. I notice PDF viewer state sometimes can be remembered in my app. You can search more issues in PDF.js repo. Someone may have answers.

1reaction
raykincommented, Aug 23, 2021

@anees-tricon it doesn’t remove sidebar. I tested it in app and it just close sidebar, I can still open sidebar with two view mode. It also add a green dot to the sidebar. Btw, I notice it was opened in iframe in default.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Sidebars - Navigation and search - Human Interface Guidelines
By default, sidebar icons use the current accent color and people expect to see their chosen accent color throughout all the apps they...
Read more >
Possible to control default sidebar behavior? - GitLab Forum
Is it possible to remove the left sidebar from appearing in a GitLab wiki, or show it collapsed it by default?
Read more >
Sidebar appearing in edit mode for the default form behaviour ...
Describe the bug When we have a default view other than the block layout you will see the sidebar appearing before the it...
Read more >
Collapsed sidebar as default - javascript - Stack Overflow
Ok, I'll tell you how to achieve what you want (2 methods) and then I'll explain how your code works. method 1.
Read more >
Method:Sidebar Preferences
The Method:Sidebar preferences allow you to set up the default behaviour for the Method:Sidebar. It is only accessible from Method:CRM, and not accessible ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found