Commit adb378f8 authored by Martti Käärik's avatar Martti Käärik
Browse files

Negative resize causes move.

Change-Id: I45248c756c69fd423818af609b3b30c6bf2a8153
parent b949c23b
Loading
Loading
Loading
Loading
+1
Changes for plugins/org.etsi.mts.tdl.graphical.viewpoint/src/org/etsi/mts/tdl/graphical/sirius/layout/SequenceDiagramFreeformLayoutProvider.java: 1 added line, 0 removed lines.
Original line number Diff line number Diff line
@@ -241,6 +241,7 @@ class SequenceFreeformLayoutEditPartProvider extends TdlAbstractLayoutEditPartPr
				Rectangle bounds = f.getBounds();
				Dimension resizeDelta = size.getExpanded(-bounds.width, -bounds.height);
				resizeDelta.width = 0;
				resizeDelta.height = Math.max(resizeDelta.height, 0);

				resizeDelta.width *= scale;
				resizeDelta.height *= scale;