Просмотр исходного кода

EnlargeContainerEditPolicy
First call the feedback to ensure that the correct figure values are
// calculeted when using the PreferredSizeEditPolicy

Andreas Mülder 13 лет назад
Родитель
Сommit
a7fcfb7030

+ 3 - 0
plugins/org.yakindu.sct.ui.editor/src/org/yakindu/sct/ui/editor/policies/EnlargeContainerEditPolicy.java

@@ -57,6 +57,9 @@ public class EnlargeContainerEditPolicy extends AbstractEditPolicy {
 				&& !RequestConstants.REQ_MOVE.equals(request.getType())) {
 			return null;
 		}
+		// First call the feedback to ensure that the correct figure values are
+		// calculeted when using the PreferredSizeEditPolicy
+		showContainerFeedback((ChangeBoundsRequest) request);
 
 		ChangeBoundsRequest cbr = (ChangeBoundsRequest) request;
 		CompoundCommand result = new CompoundCommand();