From 32f1fc50e131984ce15ee5caf2c81f8c568c3679 Mon Sep 17 00:00:00 2001 From: Rory Abraham <47436092+roryabraham@users.noreply.github.com> Date: Thu, 9 Sep 2021 09:20:07 -0700 Subject: [PATCH] Revert "Fix: Reduced Emojipicker landscape modal height" --- src/components/withWindowDimensions.js | 1 - src/styles/getModalStyles.js | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/components/withWindowDimensions.js b/src/components/withWindowDimensions.js index ceaaf80405b0..fc53f563e3ab 100644 --- a/src/components/withWindowDimensions.js +++ b/src/components/withWindowDimensions.js @@ -72,7 +72,6 @@ export default function (WrappedComponent) { const {window} = newDimensions; const isSmallScreenWidth = window.width <= variables.mobileResponsiveWidthBreakpoint; const isMediumScreenWidth = !isSmallScreenWidth && window.width <= variables.mediumScreenResponsiveWidthBreakpoint; - this.setState({ windowHeight: window.height, windowWidth: window.width, diff --git a/src/styles/getModalStyles.js b/src/styles/getModalStyles.js index d5a9624ecc1f..f3a03dd92ae7 100644 --- a/src/styles/getModalStyles.js +++ b/src/styles/getModalStyles.js @@ -4,7 +4,7 @@ import variables from './variables'; import themeColors from './themes/default'; export default (type, windowDimensions, popoverAnchorPosition = {}) => { - const {isSmallScreenWidth, windowWidth, windowHeight} = windowDimensions; + const {isSmallScreenWidth, windowWidth} = windowDimensions; let modalStyle = { margin: 0, @@ -131,7 +131,6 @@ export default (type, windowDimensions, popoverAnchorPosition = {}) => { paddingTop: 12, justifyContent: 'center', overflow: 'hidden', - ...windowWidth >= windowHeight ? {top: 40} : {}, }; shouldAddBottomSafeAreaPadding = true;