Dom-to-image: Image croping due to margin

Created on 5 Nov 2016  路  4Comments  路  Source: tsayen/dom-to-image

Hi, I've found some images were cropped, until I came in to a case that became pretty clear the reason why. Could even reproduce it fairly easy forking your fiddle.
Library version is 2.5.2

Awesome project, by the way!!

bug

Most helpful comment

The issue is with the node margin. A silly Workaround is to put a wrapper to take care of the margin.

https://jsfiddle.net/rfno4beb/1/

:)

All 4 comments

The issue is with the node margin. A silly Workaround is to put a wrapper to take care of the margin.

https://jsfiddle.net/rfno4beb/1/

:)

Nice, didn't thought a simple wrapper would solve it, altough several ways could be thought of. Still, would be nice to solve, just to keep the project integrity.

The same thing about border. It crops the thing. Any directions on fixing it? Can make a PR potentially.

The issue is with the node margin. A silly Workaround is to put a wrapper to take care of the margin.

https://jsfiddle.net/rfno4beb/1/

:)

Bro, you are the best!)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

john-m-adams picture john-m-adams  路  9Comments

cnatis picture cnatis  路  8Comments

DanielZambranoC picture DanielZambranoC  路  5Comments

Pistil-Studio picture Pistil-Studio  路  6Comments

distroyq picture distroyq  路  6Comments