Skip to content

Commit

Permalink
Fixing default values
Browse files Browse the repository at this point in the history
  • Loading branch information
romsson committed Mar 25, 2018
1 parent 78fe320 commit 2d0587a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/gridding.js
Expand Up @@ -138,7 +138,7 @@ export default function() {
"vertical": {
"layout": vertical,
"properties": [
{"key": "orient", "value": "up"},
{"key": "orient", "value": "up", "default": true},
{"key": "orient", "value": "left"},
{"key": "orient", "value": "right"},
{"key": "orient", "value": "center"},
Expand Down
4 changes: 2 additions & 2 deletions src/modes/vertical.js
Expand Up @@ -41,8 +41,8 @@ export default function(nodes, v) {
n[v.__y] = v.size[1] - v.height(_valueHeight(n)) + v.offset[1] + v.margin - v.padding;
} else if(v.orient === "center") {
n[v.__y] = (v.size[1] / 2) - v.height(_valueHeight(n)) / 2 + v.offset[1] + v.margin - v.padding;
} else { // defaut down
n[v.__y] = 0 + v.offset[1] + v.margin + v.padding;
} else { // defaut up
n[v.__y] = v.size[1] - v.height(_valueHeight(n)) + v.offset[1] + v.margin - v.padding;
}

n[v.__height] = v.height(_valueHeight(n)) - 2 * v.margin;
Expand Down

0 comments on commit 2d0587a

Please sign in to comment.