care for wrapped views
authorClaus Gittinger <cg@exept.de>
Tue, 13 Jul 1999 18:57:31 +0200
changeset 1191 32bb9f029ad2
parent 1190 237c82b3b0fc
child 1192 f3f5c92930c9
care for wrapped views
UIPainterView.st
--- a/UIPainterView.st	Tue Jul 13 17:49:25 1999 +0200
+++ b/UIPainterView.st	Tue Jul 13 18:57:31 1999 +0200
@@ -1118,8 +1118,20 @@
     spec := OrderedCollection new.
 
     self subViews do:[:aView|
+        |vSpec|
+
         aView ~~ inputView ifTrue:[
-            spec add:(self fullSpecFor:aView)
+            "/ care for wrapped views ...
+            vSpec := self fullSpecFor:aView.
+            vSpec isNil ifTrue:[
+                aView subViews size == 1 ifTrue:[
+                    vSpec := self fullSpecFor:(aView subViews first).
+                ]
+            ].
+            vSpec isNil ifTrue:[
+                self warn:'Oops - could not create spec for some view'
+            ].
+            spec add:vSpec
         ]
     ].