From 171e0c90b03335ef90a4a0ede1c5f19ab0a2cad8 Mon Sep 17 00:00:00 2001 From: guy Date: Tue, 4 Jul 2017 11:05:39 +0800 Subject: [PATCH] add --- bi/widget.js | 2 +- docs/widget.js | 2 +- src/widget/arrangement/arrangement.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bi/widget.js b/bi/widget.js index abf4b3ae1..5094c089b 100644 --- a/bi/widget.js +++ b/bi/widget.js @@ -1720,7 +1720,7 @@ BI.Arrangement = BI.inherit(BI.Widget, { region.top = region.top * yRatio; region.height = region.height * yRatio; //做一下自适应布局到网格布局的兼容 - var perWidth = this._getOneWidthPortion(); + var perWidth = self._getOneWidthPortion(); var widthPortion = Math.round(region.width / perWidth); var leftPortion = Math.round(region.left / perWidth); var comparePortion = Math.round((region.width + region.left) / perWidth); diff --git a/docs/widget.js b/docs/widget.js index abf4b3ae1..5094c089b 100644 --- a/docs/widget.js +++ b/docs/widget.js @@ -1720,7 +1720,7 @@ BI.Arrangement = BI.inherit(BI.Widget, { region.top = region.top * yRatio; region.height = region.height * yRatio; //做一下自适应布局到网格布局的兼容 - var perWidth = this._getOneWidthPortion(); + var perWidth = self._getOneWidthPortion(); var widthPortion = Math.round(region.width / perWidth); var leftPortion = Math.round(region.left / perWidth); var comparePortion = Math.round((region.width + region.left) / perWidth); diff --git a/src/widget/arrangement/arrangement.js b/src/widget/arrangement/arrangement.js index 662cf1b35..55b80e09b 100644 --- a/src/widget/arrangement/arrangement.js +++ b/src/widget/arrangement/arrangement.js @@ -926,7 +926,7 @@ BI.Arrangement = BI.inherit(BI.Widget, { region.top = region.top * yRatio; region.height = region.height * yRatio; //做一下自适应布局到网格布局的兼容 - var perWidth = this._getOneWidthPortion(); + var perWidth = self._getOneWidthPortion(); var widthPortion = Math.round(region.width / perWidth); var leftPortion = Math.round(region.left / perWidth); var comparePortion = Math.round((region.width + region.left) / perWidth);