mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-29 19:27:40 +00:00
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:
parent
0b0e77ad82
commit
6027271a4f
4 changed files with 85 additions and 3 deletions
|
@ -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];
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue