I am trying to disable the toolsHeader, was working fine before upgrading to WebViewer version to 8.0 and now it doesn’t work anymore.
I have tried by adding disabledElements: [ ‘toolsHeader’ ] in the WebViewerOptions while declaring WebViewer. I have also tried to disable it programatically in the component using:
There is nothing wrong with your code, I believe you can either do
this.webviewerInstance.UI.disableElements([‘toolsHeader’]);
// or
this.webviewerInstance.disableElements([‘toolsHeader’]);
I guess this is caused by a known issue: When the viewport width is smaller than 900px, the disabled header will show up again.
Can you check what’s your current viewport width?