mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 20:40:47 +00:00
Moved all sizeToFit calls after text changes to
the layout manager. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@8039 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
c96850c89a
commit
b05a455518
1 changed files with 0 additions and 10 deletions
|
@ -190,7 +190,6 @@ NSRange MakeRangeFromAbs (unsigned a1, unsigned a2)
|
||||||
[_textStorage replaceCharactersInRange: aRange withString: aString];
|
[_textStorage replaceCharactersInRange: aRange withString: aString];
|
||||||
[_textStorage endEditing];
|
[_textStorage endEditing];
|
||||||
[self didChangeText];
|
[self didChangeText];
|
||||||
[self sizeToFit];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void) setString: (NSString*)aString
|
- (void) setString: (NSString*)aString
|
||||||
|
@ -592,7 +591,6 @@ NSRange MakeRangeFromAbs (unsigned a1, unsigned a2)
|
||||||
range: aRange];
|
range: aRange];
|
||||||
[_textStorage endEditing];
|
[_textStorage endEditing];
|
||||||
[self didChangeText];
|
[self didChangeText];
|
||||||
[self sizeToFit];
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -719,7 +717,6 @@ NSRange MakeRangeFromAbs (unsigned a1, unsigned a2)
|
||||||
[_textStorage subscriptRange: aRange];
|
[_textStorage subscriptRange: aRange];
|
||||||
[_textStorage endEditing];
|
[_textStorage endEditing];
|
||||||
[self didChangeText];
|
[self didChangeText];
|
||||||
[self sizeToFit];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Set the typing attributes
|
// Set the typing attributes
|
||||||
|
@ -750,7 +747,6 @@ NSRange MakeRangeFromAbs (unsigned a1, unsigned a2)
|
||||||
[_textStorage superscriptRange: aRange];
|
[_textStorage superscriptRange: aRange];
|
||||||
[_textStorage endEditing];
|
[_textStorage endEditing];
|
||||||
[self didChangeText];
|
[self didChangeText];
|
||||||
[self sizeToFit];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Set the typing attributes
|
// Set the typing attributes
|
||||||
|
@ -778,7 +774,6 @@ NSRange MakeRangeFromAbs (unsigned a1, unsigned a2)
|
||||||
[_textStorage unscriptRange: aRange];
|
[_textStorage unscriptRange: aRange];
|
||||||
[_textStorage endEditing];
|
[_textStorage endEditing];
|
||||||
[self didChangeText];
|
[self didChangeText];
|
||||||
[self sizeToFit];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Set the typing attributes
|
// Set the typing attributes
|
||||||
|
@ -1514,8 +1509,6 @@ NSRange MakeRangeFromAbs (unsigned a1, unsigned a2)
|
||||||
withString: [attrString string]];
|
withString: [attrString string]];
|
||||||
[_textStorage endEditing];
|
[_textStorage endEditing];
|
||||||
[self didChangeText];
|
[self didChangeText];
|
||||||
// ScrollView interaction
|
|
||||||
[self sizeToFit];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
- (unsigned) textLength
|
- (unsigned) textLength
|
||||||
|
@ -2179,7 +2172,6 @@ other than copy/paste or dragging. */
|
||||||
}
|
}
|
||||||
[_textStorage endEditing];
|
[_textStorage endEditing];
|
||||||
[self didChangeText];
|
[self didChangeText];
|
||||||
[self sizeToFit];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void) _illegalMovement: (int) textMovement
|
- (void) _illegalMovement: (int) textMovement
|
||||||
|
@ -2267,8 +2259,6 @@ other than copy/paste or dragging. */
|
||||||
[_textStorage deleteCharactersInRange: deleteRange];
|
[_textStorage deleteCharactersInRange: deleteRange];
|
||||||
[_textStorage endEditing];
|
[_textStorage endEditing];
|
||||||
[self didChangeText];
|
[self didChangeText];
|
||||||
// ScrollView interaction
|
|
||||||
[self sizeToFit];
|
|
||||||
|
|
||||||
// move cursor <!> [self selectionRangeForProposedRange: ]
|
// move cursor <!> [self selectionRangeForProposedRange: ]
|
||||||
[self setSelectedRange: NSMakeRange (deleteRange.location, 0)];
|
[self setSelectedRange: NSMakeRange (deleteRange.location, 0)];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue