diff --git a/editable-image.js b/editable-image.js index 4d3dd91..7b7533e 100644 --- a/editable-image.js +++ b/editable-image.js @@ -56,9 +56,11 @@ class EditableImage extends IgniteElement { .src(this.source) .style("object-fit", this.objectFit) .style("object-position", this.objectPosition) + .style("min-width", 0) + .style("min-height", 0) .style("width", this.width) - .style("max-width", this.maxWidth) .style("height", this.height) + .style("max-width", this.maxWidth) .style("max-height", this.maxHeight) .hide(this.source, value => { return value == null; }) .on("load", () => this.dispatchEvent(new Event("load"))),