angular-dynamic-layout icon indicating copy to clipboard operation
angular-dynamic-layout copied to clipboard

Question about width calculation

Open borntorun opened this issue 10 years ago • 1 comments

In position.service in getItemsDimensionFromDOM function, to calculate the width in this line, the marginRight is not being taken in account.

Is this a bug? there any reason for this? I tried to changed it to sum the marginRight in my code and is working better, I think. Previously I noticed that was always a space not being filled in the right but with the change that space is filled

borntorun avatar Nov 18 '15 13:11 borntorun

Good question, I think the idea was not to account twice for the margin of two contiguous elements.

tristanguigue avatar Nov 21 '15 14:11 tristanguigue