-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix overlay size #26385
Fix overlay size #26385
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
import {defaultStyles as defaultPickerStyles} from 'react-native-picker-select/src/styles'; | ||
import {StyleSheet} from 'react-native'; | ||
import lodashClamp from 'lodash/clamp'; | ||
import fontFamily from './fontFamily'; | ||
import addOutlineWidth from './addOutlineWidth'; | ||
|
@@ -1520,8 +1519,14 @@ const styles = { | |
}, | ||
|
||
overlayStyles: (current) => ({ | ||
...StyleSheet.absoluteFillObject, | ||
backgroundColor: themeColors.overlay, | ||
position: 'fixed', | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Does this work on iPad? If i'm not wrong, position type There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yeah, but the overlay is visible only for wide view and that's something we don't support yet on iOS and Android. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ios safari with ipad on landscape? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. could we think of some alternative solution that will work on landscape iPad? What do you think? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. By iOS and Android, I meant the native apps. It will work on safari/chrome mobile. We could think about alternative solutions but supporting three pane view in native apps requires more changes anyway. I am not sure if it's worth doing now if the code can change. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @rushatgabhane I think it does not work at all in native ipad now so we should not spend time on it now, but I agree that making it work in ipad landscape should be on our list soon |
||
|
||
// We need to stretch the overlay to cover the sidebar and the translate animation distance. | ||
left: -2 * variables.sideBarWidth, | ||
top: 0, | ||
bottom: 0, | ||
right: 0, | ||
backgroundColor: Colors.black, | ||
opacity: current.progress.interpolate({ | ||
inputRange: [0, 1], | ||
outputRange: [0, variables.overlayOpacity], | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This caused a regression #27353. The background color should have kept as overlay.