-
Notifications
You must be signed in to change notification settings - Fork 189
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PDF toolbar with icons disappear during scrolling #2698
Comments
That doesn't happen here: https://pdfviewer.net/extended-pdf-viewer/modal |
There's an error message in the console window. What's happening there? Set |
detailed: appConfig.mainContainer.addEventListener("drop", function (evt) {
if (AppOptions.get("enableDragAndDrop")) {
if (evt.dataTransfer.files?.[0].type !== "application/pdf") {
return;
}
evt.preventDefault();
evt.stopPropagation();
eventBus.dispatch("fileinputchange", {
source: this,
fileInput: evt.dataTransfer,
dropEvent: evt
});
}
}); but this error appears only when trying to select the text, draw hightlight line My question mostly about missed toolbar when trying to add a new image try locally to add an image over the pdf layers - and you will see how top tollbar tools missed, disappears |
It seems you've accidentally reported a bug you didn't want to report. :) I think you bug is a CSS issue. I suspect you're scrolling the entire PDF viewer instead of scrolling the payload div inside the viewer. Without seeing your source code, it's hard to tell more, but I think that's where you should look. Try to find out which div is scrollable. |
I have not mentioned scrollbars in the algorithm
|
it seems to be i have found the solution:
.pdf-viewer-container {
height: 100vh;
overflow: auto;
} |
Let's close the ticket. I'm pretty sure there's something strange going on in your application, but without seeing it, I can't even guess what it might be. I'm happy you've found a work-around! |
Angular 17
ngx-extended-pdf-viewer: 22
I open the PDF file in the popup window
When I select the tool draw or input text and make some input or draw some layer over PDF content - it works perfectly
But if I try to scroll down some pages, the toolbar on the top with icons disappears.
The toolbar should be always on the top of whatever user scrolled down
The text was updated successfully, but these errors were encountered: