diff --git a/index.html b/index.html index d9230d0..35c9808 100644 --- a/index.html +++ b/index.html @@ -90,7 +90,7 @@
-
+
diff --git a/js/gfx-editor.js b/js/gfx-editor.js index d2fa2b8..f1abcc1 100644 --- a/js/gfx-editor.js +++ b/js/gfx-editor.js @@ -15,11 +15,6 @@ export function register(div_id) { tile_canvas = document.getElementById('gfxEditorTilesCanvas'); draw_canvas = document.getElementById('gfxEditorDrawCanvas'); palette_canvas = document.getElementById('gfxEditorPalette'); - new ResizeObserver(function () { - tile_canvas.parentElement.style.maxWidth = main_div.clientWidth; - tile_canvas.parentElement.style.maxHeight = main_div.clientHeight - 300; - tile_canvas.parentElement.style.display = ''; - }).observe(main_div); draw_canvas.onmousemove = function (e) { var rect = e.target.getBoundingClientRect();