window object does weird things, rename root ID
when used with (window as any).app, it uses the element with id #app instead
This commit is contained in:
@@ -21,8 +21,8 @@
|
||||
object_fit: "cover",
|
||||
height: "auto"
|
||||
};
|
||||
export let imageWidth: number = 1;
|
||||
export let imageHeight: number = 1;
|
||||
export let imageWidth: number = 0;
|
||||
export let imageHeight: number = 0;
|
||||
|
||||
const dispatch = createEventDispatcher<{
|
||||
select: SelectData;
|
||||
@@ -32,8 +32,8 @@
|
||||
let was_reset: boolean = true;
|
||||
|
||||
$: if (selected_image == null || was_reset) {
|
||||
imageWidth = 1;
|
||||
imageHeight = 1;
|
||||
imageWidth = 0;
|
||||
imageHeight = 0;
|
||||
}
|
||||
|
||||
$: was_reset = value == null || value.length == 0 ? true : was_reset;
|
||||
|
||||
Reference in New Issue
Block a user