Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordstadnik2006-03-16 11:07:33 -0500
committerdstadnik2006-03-16 11:07:33 -0500
commit34404f1b716a00f13918787fab445ce3ff3abbff (patch)
tree28e7ddce43aed3ee270e7d6cf3c18e27bdbffa55
parent41f3dea4edd94472c48ee5d249fa5b87b7a5f6ca (diff)
downloadorg.eclipse.gmf-tooling-34404f1b716a00f13918787fab445ce3ff3abbff.tar.gz
org.eclipse.gmf-tooling-34404f1b716a00f13918787fab445ce3ff3abbff.tar.xz
org.eclipse.gmf-tooling-34404f1b716a00f13918787fab445ce3ff3abbff.zip
fix feedback bounds
-rw-r--r--examples/org.eclipse.gmf.examples.taipan.gmf.editor/src/org/eclipse/gmf/examples/taipan/gmf/editor/edit/policies/TaiPanTextNonResizableEditPolicy.java2
-rw-r--r--examples/org.eclipse.gmf.examples.taipan.gmf.editor/src/org/eclipse/gmf/examples/taipan/gmf/editor/edit/policies/TaiPanTextSelectionEditPolicy.java2
2 files changed, 4 insertions, 0 deletions
diff --git a/examples/org.eclipse.gmf.examples.taipan.gmf.editor/src/org/eclipse/gmf/examples/taipan/gmf/editor/edit/policies/TaiPanTextNonResizableEditPolicy.java b/examples/org.eclipse.gmf.examples.taipan.gmf.editor/src/org/eclipse/gmf/examples/taipan/gmf/editor/edit/policies/TaiPanTextNonResizableEditPolicy.java
index 4a4c01e8c..0f1fe6afe 100644
--- a/examples/org.eclipse.gmf.examples.taipan.gmf.editor/src/org/eclipse/gmf/examples/taipan/gmf/editor/edit/policies/TaiPanTextNonResizableEditPolicy.java
+++ b/examples/org.eclipse.gmf.examples.taipan.gmf.editor/src/org/eclipse/gmf/examples/taipan/gmf/editor/edit/policies/TaiPanTextNonResizableEditPolicy.java
@@ -107,6 +107,8 @@ public class TaiPanTextNonResizableEditPolicy extends NonResizableEditPolicyEx {
} else {
bounds = getHostFigure().getBounds().getCopy();
}
+ getHostFigure().getParent().translateToAbsolute(bounds);
+ getFeedbackLayer().translateToRelative(bounds);
return bounds;
}
diff --git a/examples/org.eclipse.gmf.examples.taipan.gmf.editor/src/org/eclipse/gmf/examples/taipan/gmf/editor/edit/policies/TaiPanTextSelectionEditPolicy.java b/examples/org.eclipse.gmf.examples.taipan.gmf.editor/src/org/eclipse/gmf/examples/taipan/gmf/editor/edit/policies/TaiPanTextSelectionEditPolicy.java
index f9e5d527a..6231534d4 100644
--- a/examples/org.eclipse.gmf.examples.taipan.gmf.editor/src/org/eclipse/gmf/examples/taipan/gmf/editor/edit/policies/TaiPanTextSelectionEditPolicy.java
+++ b/examples/org.eclipse.gmf.examples.taipan.gmf.editor/src/org/eclipse/gmf/examples/taipan/gmf/editor/edit/policies/TaiPanTextSelectionEditPolicy.java
@@ -102,6 +102,8 @@ public class TaiPanTextSelectionEditPolicy extends SelectionEditPolicy {
} else {
bounds = getHostFigure().getBounds().getCopy();
}
+ getHostFigure().getParent().translateToAbsolute(bounds);
+ getFeedbackLayer().translateToRelative(bounds);
return bounds;
}

Back to the top