added preferredWidth & preferredHeight
authorClaus Gittinger <cg@exept.de>
Fri, 30 May 2008 14:25:22 +0200
changeset 3423 5870494fda6b
parent 3422 01087101a82b
child 3424 013c4629ec6e
added preferredWidth & preferredHeight
SelectionInTreeView.st
--- a/SelectionInTreeView.st	Fri May 30 14:25:19 2008 +0200
+++ b/SelectionInTreeView.st	Fri May 30 14:25:22 2008 +0200
@@ -1868,7 +1868,7 @@
 
     y0 := self yOfVisibleLine:y0.
     x0 := self xOfValueNode:node.
-    x1 := (editorWidget preferredExtent x) max:50.
+    x1 := (editorWidget preferredWidth) max:50.
     x1 := (x0 + x1) min:(self width - 5).
 
     editorWidget geometryLayout:(Rectangle left:x0 right:x1 top:y0 bottom:y0 + fontHeight).
@@ -1881,11 +1881,6 @@
                       y:y0
                   width:SelectionInset + SelectionInset + (x1 - x0)
                  height:fontHeight.
-
-
-
-
-
 ! !
 
 !SelectionInTreeView methodsFor:'private-drag and drop'!
@@ -2499,5 +2494,5 @@
 !SelectionInTreeView class methodsFor:'documentation'!
 
 version
-    ^ '$Header: /cvs/stx/stx/libwidg2/SelectionInTreeView.st,v 1.108 2007-03-27 09:18:12 cg Exp $'
+    ^ '$Header: /cvs/stx/stx/libwidg2/SelectionInTreeView.st,v 1.109 2008-05-30 12:25:22 cg Exp $'
 ! !