[Android] position: absolute shouldn't be cut off within a container with border
See original GitHub issueDescription
If you have an element position: absolute
with negative offset within a container with a border, it’s going to be cut off, it’s like overflow: hidden
of the container is suddenly enabled by the border. But if you remove the border of the container, it works well. This issue only happens on Android.
#3198 is a similar issue, and was reported with lots of discussions. However, I believe they are not exactly the same.
Reproduction
I’ve made an example on rnplay to reproduce the issue.
Solution
TBD
Additional Information
- React Native version: 0.33 (rnplay), 0.39 (the version I currently use)
- Platform: Android
- Operating System: MacOS
Issue Analytics
- State:
- Created 7 years ago
- Reactions:91
- Comments:63 (5 by maintainers)
Top Results From Across the Web
Android position: absolute shouldn't be cut off within a ...
Here is my code which will better understand you guys. //Confirm Popup component import React from 'react'; import { Modal ...
Read more >absolute shouldn't be cut off within a container with border ...
Coding example for the question Android position: absolute shouldn't be cut off within a container with border-React Native.
Read more >border-left - CSS: Cascading Style Sheets - MDN Web Docs
The border-left shorthand CSS property sets all the properties of an element's left border.
Read more >LinearLayout | Android Developers
LayoutParams to learn about other attributes you can set on a child view to affect its position and size in the containing linear...
Read more >Safari Technology Preview Release Notes - Apple Developer
Fixed inline box decoration position when the content box is vertically shifted ... positioning of position: absolute items within nested grids (r290674) ...
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 Free
Top 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
Workaround
Use an extra container and fake the overflow with it: https://snack.expo.io/@designorant/overflow-visible-android-workaround
Still an issue 😭