SoftwareBrothers/fabricjs-viewport

Border not maintaining position when scaling.

Closed this issue · 0 comments

I created a basic rectangle and all looks fine.. but when I scale the rectangle, the borders shrink or expand which is not supposed to happen.

This happens with the latest version, 5.0. With 4.0 it works fine.

border

var canvas = new fabric.CanvasWithViewport("c");
var rect = new fabric.Rect({
    fill: 'red',
    width: 100,
    height: 100,
    hasBorders: true
});
canvas.add(rect);