fix resize handle setting the default size to NaN
I hate NaN I hate NaN I hate NaN I hate NaN I hate NaN I hate NaN I hate NaN can someone put a NaN to good use for once and store a pointer to some helpful metadata in it. please. I beg you.
This commit is contained in:
parent
17f3f573b5
commit
9b190165ff
|
@ -25,7 +25,7 @@ export class ResizeHandle extends HTMLElement {
|
||||||
|
|
||||||
#setSize(newSize) {
|
#setSize(newSize) {
|
||||||
if (newSize != newSize) {
|
if (newSize != newSize) {
|
||||||
this.size = this.initSize;
|
newSize = this.initSize;
|
||||||
}
|
}
|
||||||
this.size = Math.max(this.minSize, newSize);
|
this.size = Math.max(this.minSize, newSize);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue