#DOCUMENTATION by cg
class: ListView
comment/format in:
#checkedLinesForWidthOfContentsComputation
#checkedLinesForWidthOfContentsComputation:
--- a/ListView.st Wed Nov 15 12:09:07 2017 +0100
+++ b/ListView.st Sun Nov 19 14:09:46 2017 +0100
@@ -1,5 +1,3 @@
-"{ Encoding: utf8 }"
-
"
COPYRIGHT (c) 1989 by Claus Gittinger
All Rights Reserved
@@ -567,31 +565,39 @@
checkedLinesForWidthOfContentsComputation
"return how many and which lines to consider in the widthOfContents computation,
which is needed by the scrollBar interface.
+
If nil (the default), all lines are processed and the width of the longest line is taken.
If positive, that number of lines is checked near the start of the text,
if negative, from the end of the text.
- If 0, the width is dynamically re adjusted, as lines are drawn.
+ If 0, the width is dynamically readjusted, as lines are drawn.
+
You may want to change this to 1 if it is guaranteed that all linesa are of the same width,
or -1, if all are shorter than the last line.
(useful, for example, when it is very expensive to generate all lines, and a huge number
of same-width lines is generated through a virtual array)"
^ checkedLinesForWidthOfContentsComputation
+
+ "Modified (comment): / 19-11-2017 / 14:09:19 / cg"
!
checkedLinesForWidthOfContentsComputation:aNumberOrNil
"set how many and which lines to consider in the widthOfContents computation,
which is needed by the scrollBar interface.
+
If nil (the default), all lines are processed and the width of the longest line is taken.
If positive, that number of lines is checked near the start of the text,
if negative, from the end of the text.
If 0, the width is dynamically re adjusted, as lines are drawn.
+
You may want to change this to 1 if it is guaranteed that all linesa are of the same width,
or -1, if all are shorter than the last line.
(useful, for example, when it is very expensive to generate all lines, and a huge number
of same-width lines is generated through a virtual array)"
checkedLinesForWidthOfContentsComputation := aNumberOrNil
+
+ "Modified (comment): / 19-11-2017 / 14:09:13 / cg"
!
compareModelWhenUpdating