mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-10-11 19:17:07 +00:00
Default to left alignment for frameDraw.
This commit is contained in:
1 parent
f4f4dd8025
commit
e38845f993
1 file changed
+1
-1
@@ -153,7 +153,7 @@ function CTFrameDraw(/* CTFrame */ aFrame, /* CGContext */ aContext)
|
||||
for (var i = -1, count = lines.length; ++i < count;)
|
||||
{
|
||||
var line = lines[i],
|
||||
alignment = [line.string attribute:@"alignment" atIndex:0 effectiveRange:CPMakeRange(0, 0)],
|
||||
alignment = [line.string attribute:@"alignment" atIndex:0 effectiveRange:CPMakeRange(0, 0)] || CPLeftTextAlignment,
|
||||
position = CGContextGetTextPosition(aContext);
|
||||
|
||||
if (alignment === CPLeftTextAlignment)
|
||||
|
||||
Reference in new issue
Block a user