#REFACTORING by cg
authorClaus Gittinger <cg@exept.de>
Sat, 10 Nov 2018 00:28:55 +0100
changeset 6495 27d97d8e5ae1
parent 6494 97afb19afd7a
child 6496 4d669e93efd0
#REFACTORING by cg class: VerticalPanelView added: #computePreferredExtent removed: #preferredExtent
VerticalPanelView.st
--- a/VerticalPanelView.st	Sat Nov 10 00:28:43 2018 +0100
+++ b/VerticalPanelView.st	Sat Nov 10 00:28:55 2018 +0100
@@ -1062,24 +1062,14 @@
 
 !VerticalPanelView methodsFor:'queries'!
 
-preferredExtent
+computePreferredExtent
     "return a good extent, one that makes subviews fit"
 
     |sumOfHeights maxWidth maxHeight m2 subViews bw|
 
-    "/ If I have an explicit preferredExtent..
-    explicitExtent notNil ifTrue:[
-        ^ explicitExtent
-    ].
-
-    "/ If I have a cached preferredExtent value..
-    preferredExtent notNil ifTrue:[
-        ^ preferredExtent
-    ].
-
     subViews := self subViewsToConsider.
     (subViews size == 0) ifTrue:[
-        ^ super preferredExtent.
+        ^ super computePreferredExtent.
         "/ ^ horizontalSpace @ verticalSpace].
     ].
 
@@ -1143,7 +1133,7 @@
     m2 := margin * 2.
     ^ (maxWidth + m2) @ (sumOfHeights + m2)
 
-    "Modified: / 17.1.1998 / 00:18:16 / cg"
+    "Created: / 09-11-2018 / 20:03:55 / Claus Gittinger"
 ! !
 
 !VerticalPanelView class methodsFor:'documentation'!