Commit 8710ee1dbc5fef8941ba3ac2ba2064b577a4d2b8
1 parent
23c508ed23
Exists in
master
Update bug task 2045
Showing 2 changed files with 2 additions and 6 deletions Side-by-side Diff
releases/RM2045/20170306_RM2045_NEW.rar
No preview for this file type
sources/RoboforkApp/DesignerCanvas.cs
... | ... | @@ -2390,15 +2390,11 @@ |
2390 | 2390 | _ucNode.btnWidth = 50.0; |
2391 | 2391 | _ucNode.btnHeight = 50.0; |
2392 | 2392 | _ucNode.txtNode = stt.ToString(); |
2393 | - Canvas.SetLeft(_ucNode, FreeNode.X); | |
2394 | - Canvas.SetTop(_ucNode, FreeNode.Y); | |
2393 | + Canvas.SetLeft(_ucNode, FreeNode.X -25); | |
2394 | + Canvas.SetTop(_ucNode, FreeNode.Y - 25); | |
2395 | 2395 | this.Children.Add(_ucNode); |
2396 | 2396 | ucNode_Lst.Add(_ucNode); |
2397 | 2397 | |
2398 | - double XXX = FreeNode.X + _ucNode.btnWidth / 2; | |
2399 | - double YYY = FreeNode.Y + _ucNode.btnWidth / 2; | |
2400 | - FreeNode.X = XXX; | |
2401 | - FreeNode.Y = YYY; | |
2402 | 2398 | AddNode(FreeNode, gGrpBlueNode); |
2403 | 2399 | |
2404 | 2400 | SetScheduleRoute(); |