|
@@ -226,7 +226,7 @@ class Flow extends Object {
|
|
if(layout == v)
|
|
if(layout == v)
|
|
return v;
|
|
return v;
|
|
needReflow = true;
|
|
needReflow = true;
|
|
- return layout = v;
|
|
|
|
|
|
+ return layout = v == null ? Horizontal : v;
|
|
}
|
|
}
|
|
|
|
|
|
function get_isVertical() {
|
|
function get_isVertical() {
|
|
@@ -943,7 +943,7 @@ class Flow extends Object {
|
|
case Right:
|
|
case Right:
|
|
xmax - p.calculatedWidth;
|
|
xmax - p.calculatedWidth;
|
|
case Middle:
|
|
case Middle:
|
|
- xmin + ((xmax - xmin) - p.calculatedWidth) * 0.5;
|
|
|
|
|
|
+ xmin + Std.int(((xmax - xmin) - p.calculatedWidth) * 0.5);
|
|
default:
|
|
default:
|
|
xmin;
|
|
xmin;
|
|
}
|
|
}
|
|
@@ -952,7 +952,7 @@ class Flow extends Object {
|
|
case Bottom:
|
|
case Bottom:
|
|
ymax - p.calculatedHeight;
|
|
ymax - p.calculatedHeight;
|
|
case Middle:
|
|
case Middle:
|
|
- ymin + ((ymax - ymin) - p.calculatedHeight) * 0.5;
|
|
|
|
|
|
+ ymin + Std.int(((ymax - ymin) - p.calculatedHeight) * 0.5);
|
|
default:
|
|
default:
|
|
ymin;
|
|
ymin;
|
|
}
|
|
}
|