You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I recently switched a project over from html2canvas-pro to snapdom because I liked the idea of a faster and smaller package. That said, I've run into some weird behavioral differences.
On html2canvas (h2c), when it filters out unused elements, my capture area is properly responsive and shrinks/grows accordingly.
With snapdom, it does not shrink or adjust at all. (My content does shift though.)
Is there some known issue where Snapdom doesn't respect flex box? (I do use filterMode: remove)
An additional problem I had hoped to solved via a plugin is that h2c exposes two configuration options: windowWidth and windowHeight
These can be used to change the size of the rendering element (I use it for displaying mobile device captures in a desktop layout).
I attempted to recreate this functionality via a plugin but it does not have access to the window element. Using the width/height options also don't seem to work on mobile.
Hoping someone can point me in the right direction for correcting my issues. Thanks!
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I recently switched a project over from html2canvas-pro to snapdom because I liked the idea of a faster and smaller package. That said, I've run into some weird behavioral differences.
On html2canvas (h2c), when it filters out unused elements, my capture area is properly responsive and shrinks/grows accordingly.
With snapdom, it does not shrink or adjust at all. (My content does shift though.)
Is there some known issue where Snapdom doesn't respect flex box? (I do use
filterMode: remove)An additional problem I had hoped to solved via a plugin is that h2c exposes two configuration options:
windowWidthandwindowHeightThese can be used to change the size of the rendering element (I use it for displaying mobile device captures in a desktop layout).
I attempted to recreate this functionality via a plugin but it does not have access to the window element. Using the width/height options also don't seem to work on mobile.
Hoping someone can point me in the right direction for correcting my issues. Thanks!
Beta Was this translation helpful? Give feedback.
All reactions