diff --git a/ui/src/components/DoorMapEditor.vue b/ui/src/components/DoorMapEditor.vue index cf181e3..be404d2 100644 --- a/ui/src/components/DoorMapEditor.vue +++ b/ui/src/components/DoorMapEditor.vue @@ -1,7 +1,28 @@ @@ -15,46 +36,19 @@ import RectPad from "./rects/RectPad.vue"; }, }) export default class CalendarImage extends Vue { - private resize_observer?: ResizeObserver; - - declare $refs: { - container: HTMLDivElement; - background: HTMLImageElement; - }; - - private on_resize() { - this.$refs.container.style.height = - this.$refs.background.offsetHeight + "px"; - } - - public mounted() { - this.resize_observer = new ResizeObserver(this.on_resize); - this.resize_observer.observe(this.$refs.background); - } - - public unmounted() { - if (this.resize_observer instanceof ResizeObserver) { - this.resize_observer.disconnect(); - delete this.resize_observer; - } - } + private step = 0; } \ No newline at end of file