mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-08-28 06:27:02 +00:00
better workaorund for chrome bug
This commit is contained in:
@@ -223,16 +223,14 @@ var _objectsInRange = function(aList, aRange)
|
||||
|
||||
- (void)setAdvancements:(CPArray)someAdvancements
|
||||
{
|
||||
_glyphsFrames = [];
|
||||
debugger; // interestingly enough, this debugger statement fixes a serious chrome issue introduced in 34.0.1847.116.
|
||||
|
||||
|
||||
var count = someAdvancements.length,
|
||||
origin = CGPointMake(_fragmentRect.origin.x + _location.x, _fragmentRect.origin.y); // FIXME _location.y
|
||||
|
||||
_glyphsFrames = new Array(count);
|
||||
|
||||
for (var i = 0; i < count; i++)
|
||||
{
|
||||
_glyphsFrames.push(CGRectMake(origin.x, origin.y, someAdvancements[i], _usedRect.size.height));
|
||||
_glyphsFrames[i] = CGRectMake(origin.x, origin.y, someAdvancements[i], _usedRect.size.height);
|
||||
origin.x += someAdvancements[i];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user