|
|
@ -3698,6 +3698,7 @@ BI.Arrangement = BI.inherit(BI.Widget, { |
|
|
|
var occupied = this._applyContainer(); |
|
|
|
var occupied = this._applyContainer(); |
|
|
|
switch (this.getLayoutType()) { |
|
|
|
switch (this.getLayoutType()) { |
|
|
|
case BI.Arrangement.LAYOUT_TYPE.ADAPTIVE: |
|
|
|
case BI.Arrangement.LAYOUT_TYPE.ADAPTIVE: |
|
|
|
|
|
|
|
case BI.Arrangement.LAYOUT_TYPE.FREE: |
|
|
|
if (this._isArrangeFine()) { |
|
|
|
if (this._isArrangeFine()) { |
|
|
|
var width = this.getClientWidth(); |
|
|
|
var width = this.getClientWidth(); |
|
|
|
var xRatio = (ratio.x || 1) * width / (occupied.left + occupied.width); |
|
|
|
var xRatio = (ratio.x || 1) * width / (occupied.left + occupied.width); |
|
|
@ -3718,8 +3719,6 @@ BI.Arrangement = BI.inherit(BI.Widget, { |
|
|
|
this.relayout(); |
|
|
|
this.relayout(); |
|
|
|
} |
|
|
|
} |
|
|
|
break; |
|
|
|
break; |
|
|
|
case BI.Arrangement.LAYOUT_TYPE.FREE: |
|
|
|
|
|
|
|
break; |
|
|
|
|
|
|
|
case BI.Arrangement.LAYOUT_TYPE.GRID: |
|
|
|
case BI.Arrangement.LAYOUT_TYPE.GRID: |
|
|
|
if (this._isArrangeFine()) { |
|
|
|
if (this._isArrangeFine()) { |
|
|
|
var width = this.getClientWidth(); |
|
|
|
var width = this.getClientWidth(); |
|
|
|