Skip to content
This repository has been archived by the owner on Dec 2, 2021. It is now read-only.

Commit

Permalink
Updated dist
Browse files Browse the repository at this point in the history
  • Loading branch information
IjzerenHein committed Sep 22, 2015
1 parent 2fc8c20 commit 00906fc
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 10 deletions.
13 changes: 10 additions & 3 deletions dist/autolayout.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* @copyright Gloey Apps, 2015
*
* @library autolayout.js
* @version 0.5.1
* @version 0.5.2
*/
/**
* Parts Copyright (C) 2011-2012, Alex Russell ([email protected])
Expand Down Expand Up @@ -3784,7 +3784,7 @@ function _processCascade(context, cascade, parentItem) {
case Orientation.ZINDEX:
context.prevAttr = Attribute.ZINDEX;
context.curAttr = Attribute.ZINDEX;
context.relation.constant = prevView !== stackView ? 'default' : 0;
context.relation.constant = !prevView ? 0 : context.relation.constant || 'default';
break;
}
context.constraints.push({
Expand Down Expand Up @@ -4119,7 +4119,14 @@ var VisualFormat = (function () {
if (metaInfo.spacing) {
var value = JSON.parse(metaInfo.spacing);
metaInfo.spacing = value;
if (value === undefined || isNaN(value)) {
if (Array.isArray(value)) {
for (var sIdx = 0, len = value.length; sIdx < len; sIdx++) {
if (isNaN(value[sIdx])) {
delete metaInfo.spacing;
break;
}
}
} else if (value === undefined || isNaN(value)) {
delete metaInfo.spacing;
}
}
Expand Down
13 changes: 10 additions & 3 deletions dist/autolayout.kiwi.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* @copyright Gloey Apps, 2015
*
* @library autolayout.js
* @version 0.5.1
* @version 0.5.2
*/
/*-----------------------------------------------------------------------------
| Kiwi (TypeScript version)
Expand Down Expand Up @@ -3786,7 +3786,7 @@ function _processCascade(context, cascade, parentItem) {
case Orientation.ZINDEX:
context.prevAttr = Attribute.ZINDEX;
context.curAttr = Attribute.ZINDEX;
context.relation.constant = prevView !== stackView ? 'default' : 0;
context.relation.constant = !prevView ? 0 : context.relation.constant || 'default';
break;
}
context.constraints.push({
Expand Down Expand Up @@ -4121,7 +4121,14 @@ var VisualFormat = (function () {
if (metaInfo.spacing) {
var value = JSON.parse(metaInfo.spacing);
metaInfo.spacing = value;
if (value === undefined || isNaN(value)) {
if (Array.isArray(value)) {
for (var sIdx = 0, len = value.length; sIdx < len; sIdx++) {
if (isNaN(value[sIdx])) {
delete metaInfo.spacing;
break;
}
}
} else if (value === undefined || isNaN(value)) {
delete metaInfo.spacing;
}
}
Expand Down
6 changes: 3 additions & 3 deletions dist/autolayout.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/autolayout.min.map

Large diffs are not rendered by default.

0 comments on commit 00906fc

Please sign in to comment.