Skip to content

Commit

Permalink
Merge pull request #24305 from jscardona12/hotfix/23481
Browse files Browse the repository at this point in the history
Change position: absolute for position:fixed in getNavigationModalCard
  • Loading branch information
johnmlee101 authored Aug 9, 2023
2 parents f0558fd + 209cb76 commit b3789c9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
1 change: 0 additions & 1 deletion src/libs/Navigation/AppNavigator/AuthScreens.js
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,6 @@ class AuthScreens extends React.Component {
// we want pop in RHP since there are some flows that would work weird otherwise
animationTypeForReplace: 'pop',
cardStyle: getNavigationModalCardStyle({
windowHeight: this.props.windowHeight,
isSmallScreenWidth: this.props.isSmallScreenWidth,
}),
};
Expand Down
8 changes: 3 additions & 5 deletions src/styles/getNavigationModalCardStyles/index.website.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
import getBaseNavigationModalCardStyles from './getBaseNavigationModalCardStyles';

export default ({windowHeight, isSmallScreenWidth}) => ({
export default ({isSmallScreenWidth}) => ({
...getBaseNavigationModalCardStyles({isSmallScreenWidth}),

// This height is passed from JavaScript, instead of using CSS expressions like "100%" or "100vh", to work around
// position: fixed is set instead of position absolute to workaround Safari known issues of updating heights in DOM.
// Safari issues:
// https://github.com/Expensify/App/issues/12005
// https://github.com/Expensify/App/issues/17824
// https://github.com/Expensify/App/issues/20709

height: `${windowHeight}px`,
minHeight: `${windowHeight}px`,
position: 'fixed',
});

0 comments on commit b3789c9

Please sign in to comment.