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:
liquidex 2024-09-04 20:38:52 +02:00
parent 17f3f573b5
commit 9b190165ff

View file

@ -25,7 +25,7 @@ export class ResizeHandle extends HTMLElement {
#setSize(newSize) {
if (newSize != newSize) {
this.size = this.initSize;
newSize = this.initSize;
}
this.size = Math.max(this.minSize, newSize);
}