question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Overflow hidden is broken on android 0.36

See original GitHub issue

Description

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

screen shot 2016-11-07 at 1 20 43 pm

but it should be like this

screen shot 2016-11-07 at 1 22 01 pm
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:closed
  • Created 7 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
Thomas101commented, Nov 13, 2016

I’m seeing exactly the same, but thanks for finding the backgroundColor: "transparent" fix. That works a treat in the short term!

0reactions
st0fferncommented, Nov 30, 2016

@gorangajic I think they know, the FB team are working on a fix that they will opensource soon.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found