(-textStorage:edited:range:changeInLength:invalidatedRange:): Tell the text views to resize if their text has changed.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@15728 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
alexm 2003-01-26 20:18:04 +00:00
parent eef5009214
commit f7460d1d63
2 changed files with 7 additions and 0 deletions

View file

@ -1,3 +1,9 @@
2003-01-26 21:16 Alexander Malmberg <alexander@malmberg.org>
* Source/NSLayoutManager.m
(-textStorage:edited:range:changeInLength:invalidatedRange:): Tell
the text views to resize when their text has changed.
2003-01-26 21:08 Alexander Malmberg <alexander@malmberg.org> 2003-01-26 21:08 Alexander Malmberg <alexander@malmberg.org>
* Source/NSLayoutManager.m * Source/NSLayoutManager.m

View file

@ -995,6 +995,7 @@ TODO: not really clear what these should do
g < textcontainers[i].pos + textcontainers[i].length) g < textcontainers[i].pos + textcontainers[i].length)
continue; continue;
[[textcontainers[i].textContainer textView] sizeToFit]; /* TODO? */
[[textcontainers[i].textContainer textView] setNeedsDisplay: YES]; [[textcontainers[i].textContainer textView] setNeedsDisplay: YES];
} }
} }