mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-09-15 15:11:28 +00:00
Slight switch statement change so that nil/0 are treated equivalently.
This commit is contained in:
@@ -368,10 +368,8 @@ var LEFT_SHADOW_INSET = 3.0,
|
||||
case CPImageAlignBottomRight:
|
||||
x = boundsWidth - width;
|
||||
break;
|
||||
|
||||
case CPImageAlignCenter:
|
||||
case CPImageAlignTop:
|
||||
case CPImageAlignBottom:
|
||||
|
||||
default:
|
||||
x = (boundsWidth - width) / 2.0;
|
||||
break;
|
||||
}
|
||||
@@ -389,10 +387,8 @@ var LEFT_SHADOW_INSET = 3.0,
|
||||
case CPImageAlignBottomRight:
|
||||
y = boundsHeight - height;
|
||||
break;
|
||||
|
||||
case CPImageAlignLeft:
|
||||
case CPImageAlignRight:
|
||||
case CPImageAlignCenter:
|
||||
|
||||
default:
|
||||
y = (boundsHeight - height) / 2.0;
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user