You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -370,7 +374,8 @@ export function calculatePositionInternal(
370
374
childOffset,
371
375
margins,
372
376
padding+offset,
373
-
placementInfo
377
+
placementInfo,
378
+
shouldAccountForScroll
374
379
);
375
380
376
381
// Check if the scroll size of the overlay is greater than the available space to determine if we need to flip
@@ -384,7 +389,8 @@ export function calculatePositionInternal(
384
389
childOffset,
385
390
margins,
386
391
padding+offset,
387
-
flippedPlacementInfo
392
+
flippedPlacementInfo,
393
+
shouldAccountForScroll
388
394
);
389
395
390
396
// If the available space for the flipped position is greater than the original available space, flip.
@@ -530,12 +536,9 @@ export function calculatePosition(opts: PositionOpts): PositionResult {
530
536
// If the container is the HTML element wrapping the body element, the retrieved scrollTop/scrollLeft will be equal to the
531
537
// body element's scroll. Set the container's scroll values to 0 since the overlay's edge position value in getDelta don't then need to be further offset
532
538
// by the container scroll since they are essentially the same containing element and thus in the same coordinate system
0 commit comments