You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Calling Move(pos) on canvas.Line can make the line rotate.
In the implementation of Move(pos)Size() is used to preserve relative positions of Position1 and Position2, but Size() calls math.Abs on the difference of coordinates, so it does not really represent correct relative positions of Position1 and Position2.
To Reproduce:
Steps to reproduce the behaviour:
Create a widget with a line, where line.Position1.x > line.Position2.x or line.Position1.y > line.Position2.y
Describe the bug:
Calling
Move(pos)
oncanvas.Line
can make the line rotate.In the implementation of
Move(pos)
Size()
is used to preserve relative positions ofPosition1
andPosition2
, butSize()
callsmath.Abs
on the difference of coordinates, so it does not really represent correct relative positions ofPosition1
andPosition2
.To Reproduce:
Steps to reproduce the behaviour:
line.Position1.x > line.Position2.x
orline.Position1.y > line.Position2.y
Move()
on the line in response to some eventRefresh()
on the line to rasterize it againExample code:
Device (please complete the following information):
The text was updated successfully, but these errors were encountered: