mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-10-09 18:30:59 +00:00
fix relayouting optimization bug
This commit is contained in:
1 parent
47aafe9042
commit
4a44b35ea5
1 file changed
+3
@@ -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