public void InitialResizeOfFreeForm() { if (_freeDraw != null) { var capOrg = _hostShape.capOrgProvider(); var fdWidth = 200; var fdHeight = 100; _freeDraw.SetWH(fdWidth, fdHeight); var fdX = capOrg.X; var fdY = capOrg.Y - fdHeight * 0.4; _freeDraw.SetPosForCluster(fdX, fdY); } }
public void InitialResizeOfFreeForm() { var clustBounds = cluster.boundsProvider(); if (_freeDraw != null) { var fdWidth = clustBounds.Width * 0.7; var fdHeight = fdWidth * 0.4; _freeDraw.SetWH(fdWidth, fdHeight); var fdX = (clustBounds.X + clustBounds.Width / 2) - fdWidth / 2; var fdY = clustBounds.Y - (fdHeight + 50); _freeDraw.SetPosForCluster(fdX, fdY); } }