Change the way the text view is told about layout invalidation. Change NSTextView to update its state as late as possible before displaying, and make sure it's updated when it's resized.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@15967 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
alexm 2003-02-15 17:30:52 +00:00
parent 147d2afa56
commit b95e8bf3f4
4 changed files with 85 additions and 3 deletions

View file

@ -1547,7 +1547,7 @@ TODO: not really clear what these should do
unsigned int g;
int i;
/* Invalidate display from the first glyph not laid out (which will
/* Invalidate from the first glyph not laid out (which will
generally be the first glyph to have been invalidated). */
g = layout_glyph;
@ -1559,8 +1559,7 @@ TODO: not really clear what these should do
g < textcontainers[i].pos + textcontainers[i].length)
continue;
[[textcontainers[i].textContainer textView] sizeToFit];
[[textcontainers[i].textContainer textView] setNeedsDisplay: YES];
[[textcontainers[i].textContainer textView] _layoutManagerDidInvalidateLayout];
}
}