@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 CHANGED
@@ -6368,10 +6368,18 @@ var PaneOverlay = function PaneOverlay(_ref) {
6368
6368
  }
6369
6369
  var triggerPosition = triggerRef.current.getBoundingClientRect();
6370
6370
  var MIN_HEIGHT_FIT = 200;
6371
- var triggerDistanceFromTheBottom = window.innerHeight - triggerPosition.top + triggerPosition.height;
6371
+ var triggerDistanceFromTheBottom = window.innerHeight - triggerPosition.top - triggerPosition.height;
6372
+ console.log({
6373
+ triggerDistanceFromTheBottom: triggerDistanceFromTheBottom,
6374
+ 'window.innerHeight': window.innerHeight,
6375
+ 'triggerPosition.top': triggerPosition.top,
6376
+ 'triggerPosition.height': triggerPosition.height
6377
+ });
6372
6378
  if (triggerDistanceFromTheBottom > MIN_HEIGHT_FIT) {
6379
+ console.log('fit bottom', triggerDistanceFromTheBottom - 36);
6373
6380
  return triggerDistanceFromTheBottom - 36;
6374
6381
  }
6382
+ console.log('fit top', triggerPosition.top - 36);
6375
6383
  return triggerPosition.top - 36;
6376
6384
  }),
6377
6385
  maxHeight = _useState2[0];