mirror of
https://github.com/lospec/pixel-editor.git
synced 2023-08-10 21:12:51 +03:00
Fixed canvas resizing bug
The canvas size was not being updated after opening a png
This commit is contained in:
@ -1,14 +1,10 @@
|
||||
let resizeCanvasContainer = document.getElementById("resize-canvas");
|
||||
let rcPivot = "middle";
|
||||
let currentPivotObject;
|
||||
let resizeCanvasInitialized = false;
|
||||
let borders = {left: 0, right: 0, top: 0, bottom: 0};
|
||||
|
||||
function openResizeCanvasWindow() {
|
||||
if (!resizeCanvasInitialized) {
|
||||
resizeCanvasInitialized = true;
|
||||
initResizeCanvasInputs();
|
||||
}
|
||||
initResizeCanvasInputs();
|
||||
showDialogue('resize-canvas');
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user