Tools__CodeView2.st
changeset 17767 195cf7c7e58f
parent 17718 449427f1c172
child 17770 2555e5410582
--- a/Tools__CodeView2.st	Fri Nov 17 13:48:32 2017 +0100
+++ b/Tools__CodeView2.st	Sun Nov 19 14:10:32 2017 +0100
@@ -2605,6 +2605,15 @@
 !CodeView2::GutterView methodsFor:'change & update'!
 
 adjustSizeForLongestLine
+    <resource: #obsolete>
+    "recompute the required width (longest linenumber present, not shown)"
+
+    ^ self adjustSizeForLongestLineNumber
+
+    "Modified: / 19-11-2017 / 14:02:57 / cg"
+!
+
+adjustSizeForLongestLineNumber
     "recompute the required width (longest linenumber present, not shown)"
 
     |newNumberOfLines longestLineString textW requiredW newWidth|
@@ -2634,6 +2643,8 @@
             self invalidate
         ]
     ].
+
+    "Created: / 19-11-2017 / 14:01:49 / cg"
 !
 
 update:something with:aParameter from:changedObject
@@ -2655,7 +2666,7 @@
         
         ((something == #sizeOfContents)
         or:[ "false "(something == #visibility)"" ]) ifTrue:[
-            self adjustSizeForLongestLine.
+            self adjustSizeForLongestLineNumber.
 
             "/ (numberOfLines ~= (textView list size max:textView cursorLine)) ifTrue:[
             "/     self invalidate.
@@ -2699,7 +2710,7 @@
     super update:something with:aParameter from:changedObject
 
     "Modified: / 14-02-2014 / 12:08:40 / Jan Vrany <jan.vrany@fit.cvut.cz>"
-    "Modified: / 12-08-2017 / 13:21:08 / cg"
+    "Modified: / 19-11-2017 / 14:02:08 / cg"
 ! !
 
 !CodeView2::GutterView methodsFor:'event handling'!