@gridsheet/preact-core 3.0.4 → 3.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +2 -6
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -5065,12 +5065,8 @@ function GridSheet({
|
|
|
5065
5065
|
first = false;
|
|
5066
5066
|
return;
|
|
5067
5067
|
}
|
|
5068
|
-
|
|
5069
|
-
|
|
5070
|
-
}
|
|
5071
|
-
if (!options.sheetWidth) {
|
|
5072
|
-
setSheetWidth(el.clientWidth);
|
|
5073
|
-
}
|
|
5068
|
+
setSheetHeight(options.sheetHeight ? Math.min(options.sheetHeight, el.clientHeight) : el.clientHeight);
|
|
5069
|
+
setSheetWidth(options.sheetWidth ? Math.min(options.sheetWidth, el.clientWidth) : el.clientWidth);
|
|
5074
5070
|
});
|
|
5075
5071
|
ro.observe(el);
|
|
5076
5072
|
return () => ro.disconnect();
|