diff --git a/src/base/collection/collection.js b/src/base/collection/collection.js index ae287ca91..8605e70c5 100644 --- a/src/base/collection/collection.js +++ b/src/base/collection/collection.js @@ -54,14 +54,14 @@ BI.CollectionView = BI.inherit(BI.Widget, { }); // 兼容一下 var scrollable = o.scrollable, scrollx = o.scrollx, scrolly = o.scrolly; - if (overflowX === false) { - if (overflowY === false) { + if (o.overflowX === false) { + if (o.overflowY === false) { scrollable = false; } else { scrollable = "y" } } else { - if (overflowY === false) { + if (o.overflowY === false) { scrollable = "x"; } } diff --git a/src/base/grid/grid.js b/src/base/grid/grid.js index 76a86ead8..b264660a7 100644 --- a/src/base/grid/grid.js +++ b/src/base/grid/grid.js @@ -57,14 +57,14 @@ BI.GridView = BI.inherit(BI.Widget, { }); // 兼容一下 var scrollable = o.scrollable, scrollx = o.scrollx, scrolly = o.scrolly; - if (overflowX === false) { - if (overflowY === false) { + if (o.overflowX === false) { + if (o.overflowY === false) { scrollable = false; } else { scrollable = "y" } } else { - if (overflowY === false) { + if (o.overflowY === false) { scrollable = "x"; } }