Comments (7)
Hi,
Which release do you mean?
from ng2-pdf-viewer.
I tried 1.0.1 and 1.0.2
from ng2-pdf-viewer.
In my case, pdf viewer is in a div resizable by user's hand (using angular-resizable-element). Then I need to call updateSize() manually.
from ng2-pdf-viewer.
Didn't have that case, but now with your example it makes sense.
updateSize()
will be available in 2.0.0
from ng2-pdf-viewer.
Thanks :)
By the way, in this case, in a page with multiple splitted fragments, and one of them is pdf viewer :
The window resize event shloud be catch in main view to propagate to its children the right size they need.
But pdf viewer (a child of main view) already catch window resize event. It means that updateSize() is going to be called twice.
I wonder if it is the right way.
from ng2-pdf-viewer.
Yes, you're right, but for simplicity of this library i moved resize event inside the component.
Maybe need one more parameter to disable autoresize.
from ng2-pdf-viewer.
You're right, a parameter to disable autoresize is a good solution.
from ng2-pdf-viewer.
Related Issues (20)
- Warnings in console when loading PDF file and trying to hide Annotation text yellow popup on onPageRendered event
- Getting console error after upgrading the ng2-pdf-viewer to latest version 10.0.0
- feat: [show-all]="false" with scroll end event to load next page bottom
- Uncaught TypeError: B.split(...).at is not a function
- Integrating custom script/features of adobe acrobat with ng2-pdf-viewer
- Pdf viewer shows stuck to load pdf file on Iphone 12 /13 HOT 1
- Hello everyone, I'm using pdf viewer version 6.3.2 and it runs fine locally but after build and publish I'm having this issue Refused to create a worker from 'blob
- Support for Angular version v17 HOT 4
- ReferenceError: Cannot access module before initialization ionic angular android 12 HOT 1
- 'PdfViewerModule' does not appear to be an NG module class
- ng2-pdf-viewer not working in Angular 17
- Getting Error "Worker was Destroyed" while loading large sized Pdf.
- Not works in IOS
- pef(Listeners): not removed
- Appending Date and Time with author name in annotation yellow text popup
- Any plans to upgrade to latest pdf.js version HOT 1
- Large file not shows starting pages quickly, is there any way to control chunk requests' sequence for linearization?
- How to get total page count of PDF? HOT 1
- CSP unsafe-inline directive blocks pdf viewer
- Not rendering PDF in angular 17, ng2-pdf-viewer : v10.0.0 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ng2-pdf-viewer.