Skip to content

Commit 989ddde

Browse files
shorten comment
1 parent e40572b commit 989ddde

1 file changed

Lines changed: 2 additions & 7 deletions

File tree

packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/BackgroundStyleApplicator.kt

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -638,13 +638,8 @@ public object BackgroundStyleApplicator {
638638
compositeBackgroundDrawable.borderInsets,
639639
)
640640
val newComposite = compositeBackgroundDrawable.withNewBackground(background)
641-
// Carry the existing composite's bounds over so the freshly
642-
// constructed BackgroundDrawable has the view's real dimensions when
643-
// it first draws. Without this, setBackgroundColor called after the
644-
// view has been laid out (e.g. a transparent -> opaque transition)
645-
// would leave the drawable with 0x0 bounds on its first draw and the
646-
// border-radius path would collapse to a rectangle.
647-
// See https://github.com/facebook/react-native/issues/52415.
641+
// Carry bounds over so the new BackgroundDrawable is primed with
642+
// the view's real size on first draw. See #52415.
648643
newComposite.bounds = compositeBackgroundDrawable.bounds
649644
view.background = newComposite
650645
background

0 commit comments

Comments
 (0)