https://gist.github.com/natefaubion/75cdb4646a568f2da802ec0da7a53e6b
I have not reduced it, but it amounts to this source, which is pretty standard
{ x, y, width, height } =
activePosition
{ y = minY
, height = (activePosition.y + activePosition.height) - minY
}
https://gist.github.com/natefaubion/75cdb4646a568f2da802ec0da7a53e6b
I have not reduced it, but it amounts to this source, which is pretty standard
{ x, y, width, height } = activePosition { y = minY , height = (activePosition.y + activePosition.height) - minY }