Skip to content

Commit

Permalink
Fix empty chat and scroll issue on web
Browse files Browse the repository at this point in the history
  • Loading branch information
tugbadogan committed Jun 3, 2021
1 parent e613d11 commit 37b3591
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions src/libs/Navigation/AppNavigator/MainDrawerNavigator.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ const MainDrawerNavigator = (props) => {
drawerType: getNavigationDrawerType(props.isSmallScreenWidth),
drawerStyle: getNavigationDrawerStyle(
props.windowWidth,
props.windowHeight,
props.isSmallScreenWidth,
),
swipeEdgeWidth: 500,
Expand Down
7 changes: 4 additions & 3 deletions src/styles/styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -1620,18 +1620,19 @@ function getSafeAreaMargins(insets) {
* Return navigation menu styles.
*
* @param {Number} windowWidth
* @param {Number} windowHeight
* @param {Boolean} isSmallScreenWidth
* @returns {Object}
*/
function getNavigationDrawerStyle(windowWidth, isSmallScreenWidth) {
function getNavigationDrawerStyle(windowWidth, windowHeight, isSmallScreenWidth) {
return isSmallScreenWidth
? {
width: windowWidth,
height: '100%',
height: windowHeight,
borderColor: themeColors.border,
}
: {
height: '100%',
height: windowHeight,
width: variables.sideBarWidth,
borderRightColor: themeColors.border,
};
Expand Down

0 comments on commit 37b3591

Please sign in to comment.