Fix bounds for android view

Summary: Fixes: https://fb.workplace.com/groups/443457641253219/permalink/522116393387343/

Reviewed By: richkzad

Differential Revision: D43313031

fbshipit-source-id: b1f97632131cb4e71323b2c3e8cd36dfe7b0f78e
This commit is contained in:
Luke De Feo
2023-02-15 10:23:42 -08:00
committed by Facebook GitHub Bot
parent 848158d9a0
commit ec7bd16439

View File

@@ -299,7 +299,7 @@ object ViewDescriptor : ChainedDescriptor<View>() {
props[SizeAttributeId] = InspectableValue.Size(Size(node.width, node.height))
props[BoundsAttributeId] =
InspectableValue.Bounds(Bounds(node.left, node.top, node.right, node.bottom))
InspectableValue.Bounds(Bounds(node.left, node.top, node.width, node.height))
props[PaddingAttributeId] =
InspectableValue.SpaceBox(
SpaceBox(node.paddingTop, node.paddingRight, node.paddingBottom, node.paddingLeft))