Overflow hidden is broken on android 0.36
See original GitHub issueDescription
Overflow hidden worked on android before as expected and after upgrade to 0.36 it’s broken now. Overflow is visible, but it’s not consistent sometimes on update overflow
will work and on initial render will be broken. Also I have noticed if you put backgroundColor: 'transparent'
it will work fine
Not sure what is changed, because I can’t find anything in changelogs that will cause this to broke.
Reproduction
It’s showing like this
but it should be like this
class OverflowTest extends Component {
render() {
return (
<View style={{ overflow: 'hidden', width: 100, height: 100 }}>
<Image
source={{ uri: 'https://placeholdit.imgix.net/~text?txtsize=33&txt=200×200&w=200&h=200' }}
style={{ position: 'absolute', width: 200, height: 200 }}
/>
</View>
);
}
}
https://github.com/gorangajic/react-native-overflow-bug
Additional Information
- React Native version: 0.36.1
- Platform: Only Android
- Operating System: MacOS
Issue Analytics
- State:
- Created 7 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Overflow-x: hidden; not working on android devices
I have come to the conclusion that this is an android only problem, being caused by how my navigation menu works ...
Read more >Android does not support CSS overflow:auto ... - Issue Tracker
Issue: The overflow content is not visible and is hidden instead. CSS rules applied to div element height:400px;overflow:auto; Expected result: To see scroll ......
Read more >Android scroll problem due to Overflow on Body set to Hidden
The mobile view will not scroll, if the body class is set to overflow hidden. Set that to overflow visible, and that should...
Read more >overflow - CSS: Cascading Style Sheets - MDN Web Docs
The overflow CSS shorthand property sets the desired behavior for an element's overflow — i.e. when an element's content is too big to...
Read more >How To Fix Text-Overflow Ellipsis Not Working - Semicolon.dev
Here's the checklist: First 5 items are required to make ellipsis work in any HTML element: overflow: hidden;; white-space: nowrap ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’m seeing exactly the same, but thanks for finding the
backgroundColor: "transparent"
fix. That works a treat in the short term!@gorangajic I think they know, the FB team are working on a fix that they will opensource soon.