mirror of
https://github.com/easydiffusion/easydiffusion.git
synced 2025-01-11 16:58:31 +01:00
Don't use setAttribute to overwrite the style
This commit is contained in:
parent
1ffe29c657
commit
66c7b3fcb2
@ -276,15 +276,15 @@ function resizeInpaintingEditor() {
|
|||||||
widthValue = (widthValue / heightValue) * INPAINTING_EDITOR_SIZE
|
widthValue = (widthValue / heightValue) * INPAINTING_EDITOR_SIZE
|
||||||
heightValue = INPAINTING_EDITOR_SIZE
|
heightValue = INPAINTING_EDITOR_SIZE
|
||||||
}
|
}
|
||||||
inpaintingEditorContainer.setAttribute("style", `width:${widthValue}px;height:${heightValue}px`)
|
|
||||||
inpaintingEditorContainer.style.width = widthValue + 'px'
|
inpaintingEditorContainer.style.width = widthValue + 'px'
|
||||||
inpaintingEditorContainer.style.height = heightValue + 'px'
|
inpaintingEditorContainer.style.height = heightValue + 'px'
|
||||||
inpaintingEditor.opts.enlargeYourContainer = true
|
inpaintingEditor.opts.enlargeYourContainer = true
|
||||||
|
|
||||||
inpaintingEditor.resize()
|
inpaintingEditor.resize()
|
||||||
|
|
||||||
inpaintingEditor.ctx.lineCap = "round";
|
inpaintingEditor.ctx.lineCap = "round"
|
||||||
inpaintingEditor.ctx.lineJoin = "round";
|
inpaintingEditor.ctx.lineJoin = "round"
|
||||||
inpaintingEditor.ctx.lineWidth = inpaintingEditor.opts.size
|
inpaintingEditor.ctx.lineWidth = inpaintingEditor.opts.size
|
||||||
inpaintingEditor.setColor(inpaintingEditor.opts.color)
|
inpaintingEditor.setColor(inpaintingEditor.opts.color)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user