Skip to content

overflow:hidden is not supported on Android #3198

Closed
@xinthink

Description

@xinthink

When the parent view (overflow: 'hidden') has borderRadius set, the child view is not clipped to the shape of the parent.

2015-10-02 11 31 06

demo reproducing the issue: https://rnplay.org/apps/69TRrw

Activity

astreet

astreet commented on Oct 2, 2015

@astreet
Contributor

Thanks for the report. Unfortunately overflow: hidden is not respected on android (see https://facebook.github.io/react-native/docs/known-issues.html#the-overflow-style-property-defaults-to-hidden-and-cannot-be-changed-on-android). I think @kmagiera has previously posted about the clipping issue for rounded corners and can chime in here.

kmagiera

kmagiera commented on Oct 5, 2015

@kmagiera
Contributor

Nothing more to add here. Unfortunately this is a known problem and is not being worked on as mentioned in the docs. Closing this as it's already on the list. If you guys have any proposal on how this could be implemented without causing significant perf issue in rendering pipeline feel free to reopen and post your ideas here

rreusser

rreusser commented on Nov 20, 2015

@rreusser
Contributor

We're using imgix, so I think we'll be able to add ?fm=png&mask=ellipse and be on our way. Dodged a bullet there but will encounter moderate problems elsewhere.

I'll submit a PR to note that in addition to hidden always being true, it doesn't obey borderRadius, which is not currently noted in the docs. (I assumed that if hidden were true, it would be clipped by the borderRadius just fine.)

added a commit that references this issue on Nov 25, 2015

Merge pull request #4256 from rreusser/note-on-known-issue-for-3198

Kudo

Kudo commented on Jan 20, 2016

@Kudo
Contributor

@kmagiera May I ask where to find the comment or discussion about clipping issue with rounded corners that you posted before?

kmagiera

kmagiera commented on Jan 26, 2016

@kmagiera
Contributor
Kudo

Kudo commented on Jan 27, 2016

@Kudo
Contributor

@kmagiera I see.
The feature is really useful for some cornered UI construction.
Would like to know more detail of your mentioned significant perf drops and see if we can make this feature happens.

raymanyoung

raymanyoung commented on Mar 24, 2016

@raymanyoung

More info:
this demo (https://rnplay.org/apps/WlY9aA) shows if the outer control is an image, the borderRadius property will totally not working.

82 remaining items

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    overflow:hidden is not supported on Android · Issue #3198 · facebook/react-native