Sidebar default behaviour
See original GitHub issueThe 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:
- Created 2 years ago
- Comments:9
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@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.
@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.