diff --git a/src/core/wrapper/layout.js b/src/core/wrapper/layout.js index b147ae9fe..8093ae5fc 100644 --- a/src/core/wrapper/layout.js +++ b/src/core/wrapper/layout.js @@ -31,6 +31,15 @@ BI.Layout = BI.inherit(BI.Widget, { deep: true }); } + if (BI.isFunction(o.rowSize)) { + var rowSizeFn = o.rowSize; + o.rowSize = this.__watch(rowSizeFn, function (context, newValue) { + o.rowSize = newValue; + self.resize(); + }, { + deep: true + }); + } }, _init4Margin: function () {