mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-10-16 13:31:18 +00:00
fix relayouting optimization bug
This commit is contained in:
1 parent
39f3bc7100
commit
e71f0f44a4
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