Hiding left side panel

45 views
Skip to first unread message

Justin Jung

unread,
Jun 8, 2017, 3:11:31 PM6/8/17
to PDFTron WebViewer
Q: How do I hide left side panel? I've tried setting hideSidePanel to true, but it seems to hide both the left and right panel.

A: Yes, hideSidePanel does hide both left and right panel. To hide left side panel only, you can add the following to config.js:

$(document).on('viewerLoaded', function() {
  readerControl.setShowSideWindow(false, false);
  $('#toggleSidePanel').hide();
});
Reply all
Reply to author
Forward
0 new messages