dspec icon indicating copy to clipboard operation
dspec copied to clipboard

addSpacing bug

Open dnldd opened this issue 10 years ago • 3 comments

addSpacing calls specifying DesignSpec.From.RIGHT do not render for some reason. To replicate, try addSpacing(0, 16, DesignSpec.From.RIGHT).

dnldd avatar Nov 08 '14 16:11 dnldd

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.

hugocroch avatar Dec 14 '14 06:12 hugocroch

The same here. Thanks @hugocroch for the fix, it worked for both the RIGHT and BOTTOM cases.

suciudaniel avatar Mar 12 '15 20:03 suciudaniel

+1

ragunathjawahar avatar Feb 28 '16 15:02 ragunathjawahar