guy 8 years ago
parent
commit
171e0c90b0
  1. 2
      bi/widget.js
  2. 2
      docs/widget.js
  3. 2
      src/widget/arrangement/arrangement.js

2
bi/widget.js

@ -1720,7 +1720,7 @@ BI.Arrangement = BI.inherit(BI.Widget, {
region.top = region.top * yRatio; region.top = region.top * yRatio;
region.height = region.height * yRatio; region.height = region.height * yRatio;
//做一下自适应布局到网格布局的兼容 //做一下自适应布局到网格布局的兼容
var perWidth = this._getOneWidthPortion(); var perWidth = self._getOneWidthPortion();
var widthPortion = Math.round(region.width / perWidth); var widthPortion = Math.round(region.width / perWidth);
var leftPortion = Math.round(region.left / perWidth); var leftPortion = Math.round(region.left / perWidth);
var comparePortion = Math.round((region.width + region.left) / perWidth); var comparePortion = Math.round((region.width + region.left) / perWidth);

2
docs/widget.js

@ -1720,7 +1720,7 @@ BI.Arrangement = BI.inherit(BI.Widget, {
region.top = region.top * yRatio; region.top = region.top * yRatio;
region.height = region.height * yRatio; region.height = region.height * yRatio;
//做一下自适应布局到网格布局的兼容 //做一下自适应布局到网格布局的兼容
var perWidth = this._getOneWidthPortion(); var perWidth = self._getOneWidthPortion();
var widthPortion = Math.round(region.width / perWidth); var widthPortion = Math.round(region.width / perWidth);
var leftPortion = Math.round(region.left / perWidth); var leftPortion = Math.round(region.left / perWidth);
var comparePortion = Math.round((region.width + region.left) / perWidth); var comparePortion = Math.round((region.width + region.left) / perWidth);

2
src/widget/arrangement/arrangement.js

@ -926,7 +926,7 @@ BI.Arrangement = BI.inherit(BI.Widget, {
region.top = region.top * yRatio; region.top = region.top * yRatio;
region.height = region.height * yRatio; region.height = region.height * yRatio;
//做一下自适应布局到网格布局的兼容 //做一下自适应布局到网格布局的兼容
var perWidth = this._getOneWidthPortion(); var perWidth = self._getOneWidthPortion();
var widthPortion = Math.round(region.width / perWidth); var widthPortion = Math.round(region.width / perWidth);
var leftPortion = Math.round(region.left / perWidth); var leftPortion = Math.round(region.left / perWidth);
var comparePortion = Math.round((region.width + region.left) / perWidth); var comparePortion = Math.round((region.width + region.left) / perWidth);

Loading…
Cancel
Save