Closed
Description
I've noticed that the InputCapturingState of the panels returns an incorrect value when the panel is collapsed.
For example:
With mouse hovering over expanded panel, the state is correctly identified as InputCapturingStateHover
(mouse cursor not shown, but is next to "Hi-Res" in "Demo Window"):
With "Demo Window" collapsed, but the mouse cursor where the Demo Window would have been:
The issue seems to be with the bounds calculation here:
Line 99 in 7d29b6e
A fix would be to subtract cnt.layout.BodyBounds.Dy()
from cnt.layout.Bounds.Max.Y
.
I will submit a PR shortly.
Thanks.