Commit 2c8bc0c
committed
[BugFix][Android] Override onMeasure in UIBodyView to delegate measurement to renderer
- What changed
Added an onMeasure override in UIBody.UIBodyView. When shouldDrawWithDisplayList() returns true, measurement is delegating to the renderer's measure method instead of using the default View onMeasure behavior.
- Why it was needed
In fragment layer / display list render mode, letting the default View onMeasure run could override the measured dimensions set by the renderer and lead to incorrect layout or extra measure passes.
- How it was verified / impacts
This change keeps onMeasure consistent with the existing onLayout and onDraw renderer delegation paths and avoids redundant measurement work in display-list mode.
[internal]
TEST: existing Android unit tests and LynxExample verification
[end-internal]1 parent ec14f94 commit 2c8bc0c
1 file changed
Lines changed: 10 additions & 0 deletions
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
732 | 732 | | |
733 | 733 | | |
734 | 734 | | |
| 735 | + | |
| 736 | + | |
| 737 | + | |
| 738 | + | |
| 739 | + | |
| 740 | + | |
| 741 | + | |
| 742 | + | |
| 743 | + | |
| 744 | + | |
735 | 745 | | |
736 | 746 | | |
737 | 747 | | |
| |||
0 commit comments