var paddingRight = this.thumbEl.getLeft(true) + this.thumbEl.getWidth() - newCanvasWidth - newPreviewLeft;
var paddingBottom = this.thumbEl.getTop(true) + this.thumbEl.getHeight() - newCanvasHeight - newPreviewTop;
- var maxPadding = (newCanvasWidth > newCanvasHeight) ? newCanvasWidth * 0.05 : newCanvasHeight * 0.05;
+ var maxPadding = (newCanvasWidth >= newCanvasHeight) ? newCanvasWidth * 0.05 : newCanvasHeight * 0.05;
console.log("=================================");
console.log("old canvas width: " + this.canvasEl.width);