Cleanup of accessor logic in boundAxis.
This commit is contained in:
@@ -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;
|
||||||
|
Reference in New Issue
Block a user