This issue arose after I modified limpet's Calendar skin to use an adjustable variable for the width of the skin. The X position of each meter is based on two variables: #FirstX#, which is used by the first date in the row, and #SpacingX#, which is used by each subsequent date (as in X=#SpacingX#r).
Code: Select all
FirstX=38
SpacingX=((#SidebarWidth#-#FirstX#-19)/6)
Code: Select all
[msWeekDay2]
Measure=CALC
Formula=#FirstX#+msWeekDay*#SpacingX#
I believe this is some sort of rounding error. If I calculate SpacingX by hand - in this case, with a total #SidebarWidth# of 500, the value of SpacingX comes to 73.83333 - the same error occurs. If I manually round it off to 74, it displays correctly. However, if I change [msWeekDay2] to use ROUND(#SpacingX#), the drift is only exaggerated.
Any idea why this is happening? I know I can probably fix it by changing how the regular meters get their X, but I'd like to solve it on this end, if possible.