Which product are you using?
PDF.js Express Viewer
PDF.js Express Version
UI Version: 8.4.1
Core Version: 8.4.0
Detailed description of issue
Header is too small on mobile
Expected behaviour
Header Bar should be bigger on mobile like on desktop.
Does your issue happen with every document, or just one?
This issue happen in every document on mobile
Link to document
{Provide a link to the document in question if possible}
I’m currently using the default document: https://pdftron.s3.amazonaws.com/downloads/pl/webviewer-demo.pdf
Code snippet
WebViewer({
path: './node_modules/@pdftron/pdfjs-express-viewer/public',
licenseKey: 'xxxx',
initialDoc: 'https://pdftron.s3.amazonaws.com/downloads/pl/webviewer-demo.pdf',
}, document.getElementById('viewer'))
.then(instance => {
// now you can access APIs through the WebViewer instance
const { Core, UI } = instance;
// adding an event listener for when a document is loaded
Core.documentViewer.addEventListener('documentLoaded', () => {
console.log('document loaded');
});
instance.UI.setHeaderItems(function (header) {
const items = header.getItems()
//remove element from items array
items.splice(0, 3)
header.update(items);
});
});
Best Regards,
Andrea