@7shifts/sous-chef 3.44.13 → 3.44.15
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 +9 -1
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +9 -1
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -6364,10 +6364,18 @@ var PaneOverlay = function PaneOverlay(_ref) {
|
|
|
6364
6364
|
}
|
|
6365
6365
|
var triggerPosition = triggerRef.current.getBoundingClientRect();
|
|
6366
6366
|
var MIN_HEIGHT_FIT = 200;
|
|
6367
|
-
var triggerDistanceFromTheBottom = window.innerHeight - triggerPosition.top
|
|
6367
|
+
var triggerDistanceFromTheBottom = window.innerHeight - triggerPosition.top - triggerPosition.height;
|
|
6368
|
+
console.log({
|
|
6369
|
+
triggerDistanceFromTheBottom: triggerDistanceFromTheBottom,
|
|
6370
|
+
'window.innerHeight': window.innerHeight,
|
|
6371
|
+
'triggerPosition.top': triggerPosition.top,
|
|
6372
|
+
'triggerPosition.height': triggerPosition.height
|
|
6373
|
+
});
|
|
6368
6374
|
if (triggerDistanceFromTheBottom > MIN_HEIGHT_FIT) {
|
|
6375
|
+
console.log('fit bottom', triggerDistanceFromTheBottom - 36);
|
|
6369
6376
|
return triggerDistanceFromTheBottom - 36;
|
|
6370
6377
|
}
|
|
6378
|
+
console.log('fit top', triggerPosition.top - 36);
|
|
6371
6379
|
return triggerPosition.top - 36;
|
|
6372
6380
|
}),
|
|
6373
6381
|
maxHeight = _useState2[0];
|