In BoxShadow, rectHeight is calculated as height - radius * 2 and rectWidth is calculated as width - radius * 2.
These values can be negative for views with dynamic height. There should be a check for negative values before prefixing a - to a negative number (notice the double -- in the image below)
In BoxShadow,
rectHeight
is calculated asheight - radius * 2
andrectWidth
is calculated aswidth - radius * 2
. These values can be negative for views with dynamic height. There should be a check for negative values before prefixing a-
to a negative number (notice the double--
in the image below)