You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/BackgroundStyleApplicator.kt
+2-7Lines changed: 2 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -638,13 +638,8 @@ public object BackgroundStyleApplicator {
638
638
compositeBackgroundDrawable.borderInsets,
639
639
)
640
640
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.
0 commit comments