dspec
dspec copied to clipboard
addSpacing bug
addSpacing calls specifying DesignSpec.From.RIGHT
do not render for some reason. To replicate, try addSpacing(0, 16, DesignSpec.From.RIGHT)
.
I also have the bug and this is because of order of operations. In fact, the operation to calculate the position misses parenthesis
width - (spacing.offset + spacing.size);
instead of
width - spacing.offset + spacing.size;
I assume that we have the same error if the FROM is BOTTOM.
The same here. Thanks @hugocroch for the fix, it worked for both the RIGHT and BOTTOM cases.
+1