react / react/react-native

[Android] position: absolute shouldn't be cut off within a container with border

オープン
#12,534 コメント 72 件 リアクション 93 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

Bug Never gets stale Platform: Android Ran Commands
主要言語
C++
スター
127k
フォーク
25.3k
平均マージ
1日 23時間
マージ済み PR(30日)
4

説明

Description

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

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

リンクされた rnplay の再現から始め、関連する issue #3198 と動作を比較してください。境界線付きのコンテナと、負のオフセットを持つ絶対位置指定の子要素という Android 固有のケースを調査してください。この再現で子要素がクリップされなくなれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
android, react-native
領域
mobile
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。