image-jigsaw icon indicating copy to clipboard operation
image-jigsaw copied to clipboard

Vertical margin

Open alex-revo opened this issue 9 years ago • 1 comments

How remove vertical margin beetwen rows?

alex-revo avatar Apr 19 '16 22:04 alex-revo

@alex-revo This is not configurable directly for now, however I can tell you a quick hack. In the line no 53 of jquery.image-jigsaw.js https://github.com/mebjas/image-jigsaw/blob/master/js/jquery.image-jigsaw.js#L53, change the line from .css("margin", this.options.margin) to .css("margin", '-3px ' +this.options.margin +'px')

This way the margin field in the options passed in constructor will be the left and right margin while the top and bottom margin will be -3px

I'll add option for both vertical and horizontal margins to be separately as soon as I get time. If you could send a pull, you are most welcome.

mebjas avatar Apr 20 '16 10:04 mebjas