*** empty log message *** stable_expecco_sel
authorClaus Gittinger <cg@exept.de>
Tue, 05 Apr 2005 15:12:23 +0200
changeset 2807 0e03635f5ced
parent 2806 511fea6ed7ed
child 2808 2ee9a7008a6d
*** empty log message ***
DSVColumnView.st
--- a/DSVColumnView.st	Tue Apr 05 09:11:12 2005 +0200
+++ b/DSVColumnView.st	Tue Apr 05 15:12:23 2005 +0200
@@ -2777,6 +2777,20 @@
     scrollRowWise      := false.
 !
 
+mapped
+    "set selection (if any) after mapping"
+    
+    |idx|
+
+    super mapped.
+    needFitColumns == true ifTrue:[
+        self fitColumns
+    ].
+    (idx := self firstIndexSelected) ~~ 0 ifTrue:[
+        self scrollToRowAt:idx colAt:0.
+    ].
+!
+
 realize
     "recompute contents and fit columns to view"
     
@@ -2799,20 +2813,6 @@
     self fitColumns.
 !
 
-realized
-    "set selection if exists after mapping"
-    
-    |idx|
-
-    super realized.
-    needFitColumns == true ifTrue:[
-        self fitColumns
-    ].
-    (idx := self firstIndexSelected) ~~ 0 ifTrue:[
-        self scrollToRowAt:idx colAt:0.
-    ].
-!
-
 release
     "remove dependencies"
     
@@ -4056,5 +4056,5 @@
 !DSVColumnView class methodsFor:'documentation'!
 
 version
-    ^ '$Header: /cvs/stx/stx/libwidg2/DSVColumnView.st,v 1.198 2005-04-04 10:34:38 cg Exp $'
+    ^ '$Header: /cvs/stx/stx/libwidg2/DSVColumnView.st,v 1.199 2005-04-05 13:12:23 cg Exp $'
 ! !