mirror of
https://github.com/software-mansion/argent.git
synced 2026-09-14 19:27:14 +08:00
cf8fc4e9ed
`rectOverDescendants` stopped at the first descendant with a usable box, while describe unions the children that survive its trim. A bare wrapper `<div>` is exactly a node the trim hands its children up for, so on an ordinary page with no scroller the two trees put the same WebView 770px apart: describe on a 400x60 box, the flow tree over the whole screen. An ancestor's scroll clip splits them the same way. The descent now follows the trim — past a node it drops, never into one it hides — and lives beside `boundsOverChildren` so the two rules stay together. Byte-identical output on live captures of a WebView login screen and a native Settings screen.