Cleanup of accessor logic in boundAxis.

This commit is contained in:
Russell Keith-Magee
2015-04-01 14:46:55 +08:00
parent 9cf2e71e01
commit 6ca5fc5cb4

View File

@@ -204,13 +204,13 @@ var computeLayout = (function() {
function boundAxis(node, axis, value) { function boundAxis(node, axis, value) {
var min = { var min = {
row: node.style['minWidth'], row: node.style.minWidth,
column: node.style['minHeight'] column: node.style.minHeight
}[axis]; }[axis];
var max = { var max = {
row: node.style['maxWidth'], row: node.style.maxWidth,
column: node.style['maxHeight'] column: node.style.maxHeight
}[axis]; }[axis];
var boundValue = value; var boundValue = value;