Skip to content

Commit

Permalink
fix(computeStyles): positioning with strategy fixed and a containin…
Browse files Browse the repository at this point in the history
…g block (#1579)
  • Loading branch information
chudzikmagda committed Mar 12, 2022
1 parent 9d6221a commit 7eae96d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/modifiers/computeStyles.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ export function mapToStyles({
) {
sideY = bottom;
const offsetY =
isFixed && win.visualViewport
isFixed && offsetParent === win && win.visualViewport
? win.visualViewport.height
: // $FlowFixMe[prop-missing]
offsetParent[heightProp];
Expand All @@ -134,7 +134,7 @@ export function mapToStyles({
) {
sideX = right;
const offsetX =
isFixed && win.visualViewport
isFixed && offsetParent === win && win.visualViewport
? win.visualViewport.width
: // $FlowFixMe[prop-missing]
offsetParent[widthProp];
Expand Down

0 comments on commit 7eae96d

Please sign in to comment.