Use correct bounds for litho debug components

Summary:
This change is a follow-up on Litho release:
https://central.sonatype.dev/artifact/com.facebook.litho/litho-widget-kotlin/0.44.0

This change ensures DebugComponent returns the correct Bounds.

Reviewed By: aigoncharov

Differential Revision: D40678191

fbshipit-source-id: 1d587efa114a9cd5c0b8162d219e93e3cbad282e
This commit is contained in:
Lorenzo Blasa
2022-10-28 04:58:52 -07:00
committed by Facebook GitHub Bot
parent 587f428cf8
commit 3598fb2cde
2 changed files with 3 additions and 2 deletions

View File

@@ -56,7 +56,8 @@ class DebugComponentDescriptor(val register: DescriptorRegister) : NodeDescripto
override fun getData(node: DebugComponent) = mapOf<String, InspectableObject>()
override fun getBounds(node: DebugComponent): Bounds = Bounds.fromRect(node.bounds)
override fun getBounds(node: DebugComponent): Bounds =
Bounds.fromRect(node.boundsInParentDebugComponent)
override fun getTags(node: DebugComponent): Set<String> = setOf(BaseTags.Declarative, LithoTag)