1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-10-31 00:07:48 +02:00

Android,Web: Fix scroll issues and incorrect main content height (#11071)

This commit is contained in:
Henry Heino
2024-09-21 05:05:17 -07:00
committed by GitHub
parent d13e7b32c3
commit 050a896c8b

View File

@@ -47,8 +47,12 @@ const useStyles = ({ themeId, isLeftMenu, menuWidth, menuOpenFraction }: UseStyl
display: 'flex',
alignContent: 'stretch',
height: windowHeight,
flexGrow: 1,
flexShrink: 1,
},
contentOuterWrapper: {
flexGrow: 1,
flexShrink: 1,
width: windowWidth,
height: windowHeight,
transform: [{
@@ -64,10 +68,12 @@ const useStyles = ({ themeId, isLeftMenu, menuWidth, menuOpenFraction }: UseStyl
display: 'flex',
flexDirection: 'column',
flexGrow: 1,
flexShrink: 1,
},
menuWrapper: {
position: 'absolute',
height: windowHeight,
top: 0,
bottom: 0,
width: menuWidth,
// In React Native, RTL replaces `left` with `right` and `right` with `left`.
@@ -86,8 +92,6 @@ const useStyles = ({ themeId, isLeftMenu, menuWidth, menuOpenFraction }: UseStyl
bottom: 0,
zIndex: 1,
width: windowWidth,
height: windowHeight,
opacity: menuOpenFraction.interpolate({
inputRange: [0, 1],