fixed: updates to storage were not propageted to the view

This commit is contained in:
daboe01 committed 2016-06-08 19:23:37 +02:00
1 parent d4c77f9786
commit 8d703b1459
2 files changed
+1 -1

No files matched your search

+1
View File
@@ -438,6 +438,7 @@ _oncontextmenuhandler = function () { return false; };
[self invalidateLayoutForCharacterRange: invalidatedRange isSoft:NO actualCharacterRange:actualRange];
[self invalidateDisplayForGlyphRange: actualRange];
[self _validateLayoutAndGlyphs];
}
- (CPRange)glyphRangeForBoundingRect:(CGRect)aRect inTextContainer:(CPTextContainer)container
-1
View File
@@ -1653,7 +1653,6 @@ var kDelegateRespondsTo_textShouldBeginEditing
[_typingAttributes setObject:aColor forKey:CPForegroundColorAttributeName];
[_layoutManager textStorage:_textStorage edited:0 range:range changeInLength:0 invalidatedRange:CPMakeRangeCopy(range)];
[_layoutManager _validateLayoutAndGlyphs];
}
- (void)underline:(id)sender