ImageEditor.st
changeset 1980 862d4036cebd
parent 1975 14b7babca4f5
child 1985 8c887bee94fa
--- a/ImageEditor.st	Mon Feb 13 09:54:43 2006 +0100
+++ b/ImageEditor.st	Tue Feb 14 11:06:02 2006 +0100
@@ -3685,17 +3685,7 @@
 
 !
 
-open
-    "after opening, sets the masterApplication of the imageEditView to self"
-
-    super open.
-
-    imageEditView := (self componentAt: #imageEditView) subViews first.
-!
-
-postBuildWith:aBuilder
-    super postBuildWith:aBuilder.
-
+commonPostBuild
     imageEditView undoImages addDependent:self.
     imageEditView imageInfoHolder:(self imageInfoHolder).
     imageEditView activityInfoHolder:(self activityInfoHolder).
@@ -3712,11 +3702,29 @@
     imageEditView modifiedHolder addDependent:self.
 
     DefaultRelativeSizes notNil ifTrue:[
-        (aBuilder componentAt:#horizontalPanel) relativeCorners:DefaultRelativeSizes first.
-        (aBuilder componentAt:#verticalPanel) relativeCorners:DefaultRelativeSizes second.
+        (builder componentAt:#horizontalPanel) relativeCorners:DefaultRelativeSizes first.
+        (builder componentAt:#verticalPanel) relativeCorners:DefaultRelativeSizes second.
     ].
 !
 
+open
+    "after opening, sets the masterApplication of the imageEditView to self"
+
+    super open.
+
+    imageEditView := (self componentAt: #imageEditView) subViews first.
+!
+
+postBuildAsSubcanvasWith:aBuilder
+    super postBuildAsSubcanvasWith:aBuilder.
+    self commonPostBuild.
+!
+
+postBuildWith:aBuilder
+    super postBuildWith:aBuilder.
+    self commonPostBuild.
+!
+
 postOpenWith:aBuilder
     "after opening, sets the masterApplication of the imageEditView to self;
      evaluate the postOpenAction"