mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-09-12 05:31:29 +00:00
fix relayouting optimization bug
This commit is contained in:
@@ -675,6 +675,9 @@ var _objectsInRange = function(aList, aRange)
|
||||
oldLength = CPMaxRange([_lineFragmentsForRescue lastObject]._range),
|
||||
newLength = [[_textStorage string].length];
|
||||
|
||||
if(ABS(newLength - oldLength) > 1)
|
||||
return NO;
|
||||
|
||||
if (![oldLineFragment isVisuallyIdenticalToFragment: newLineFragment])
|
||||
{
|
||||
isIdentical = NO;
|
||||
|
||||
Reference in New Issue
Block a user