DSVColumnView.st
changeset 4961 3aa86bd7a0ce
parent 4875 e47db739d7d1
child 4991 ddee68d07788
--- a/DSVColumnView.st	Fri Feb 12 19:01:10 2016 +0100
+++ b/DSVColumnView.st	Mon Feb 22 16:10:14 2016 +0100
@@ -3720,9 +3720,10 @@
     cachedPreferredExtent notNil ifTrue:[
         ^ cachedPreferredExtent
     ].
+
     "/ cg: ????? why 3
     prefWidth := 3.
-    prefWidth := columnDescriptors size - 1.  "/ for the separators
+    prefWidth := (columnDescriptors size - 1) max:0.  "/ for the separators
     columnDescriptors do:[:aCol | 
         minRowHeight := (aCol heightOfHighestRow) max:minRowHeight.
         prefWidth := prefWidth + (aCol minWidth max:5).