|
|
@ -458,9 +458,9 @@ BI.AdaptiveArrangement = BI.inherit(BI.Widget, { |
|
|
|
self._initResizable(item.el); |
|
|
|
self._initResizable(item.el); |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
this.element.mousedown(function (e) { |
|
|
|
$(document).mousedown(function (e) { |
|
|
|
BI.each(self.getAllRegions(), function (i, region) { |
|
|
|
BI.each(self.getAllRegions(), function (i, region) { |
|
|
|
if (!region.el.element.__isMouseInBounds__(e)) { |
|
|
|
if (region.el.element.find(e.target).length === 0) { |
|
|
|
region.el.element.removeClass("selected"); |
|
|
|
region.el.element.removeClass("selected"); |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
@ -1160,15 +1160,15 @@ BI.Arrangement = BI.inherit(BI.Widget, { |
|
|
|
var leftPortion = Math.round(position.left / perWidth); |
|
|
|
var leftPortion = Math.round(position.left / perWidth); |
|
|
|
var topPortion = Math.round(position.top / perHeight); |
|
|
|
var topPortion = Math.round(position.top / perHeight); |
|
|
|
var heightPortion = Math.round(position.height / perHeight); |
|
|
|
var heightPortion = Math.round(position.height / perHeight); |
|
|
|
if (leftPortion > BI.Arrangement.PORTION) { |
|
|
|
// if (leftPortion > BI.Arrangement.PORTION) {
|
|
|
|
leftPortion = BI.Arrangement.PORTION; |
|
|
|
// leftPortion = BI.Arrangement.PORTION;
|
|
|
|
} |
|
|
|
// }
|
|
|
|
if (widthPortion > BI.Arrangement.PORTION) { |
|
|
|
// if (widthPortion > BI.Arrangement.PORTION) {
|
|
|
|
widthPortion = BI.Arrangement.PORTION; |
|
|
|
// widthPortion = BI.Arrangement.PORTION;
|
|
|
|
} |
|
|
|
// }
|
|
|
|
if (leftPortion + widthPortion > BI.Arrangement.PORTION) { |
|
|
|
// if (leftPortion + widthPortion > BI.Arrangement.PORTION) {
|
|
|
|
leftPortion = BI.Arrangement.PORTION - widthPortion; |
|
|
|
// leftPortion = BI.Arrangement.PORTION - widthPortion;
|
|
|
|
} |
|
|
|
// }
|
|
|
|
if (widthPortion === 0) { |
|
|
|
if (widthPortion === 0) { |
|
|
|
widthPortion = 1; |
|
|
|
widthPortion = 1; |
|
|
|
} |
|
|
|
} |
|
|
@ -1735,7 +1735,6 @@ BI.Arrangement = BI.inherit(BI.Widget, { |
|
|
|
|
|
|
|
|
|
|
|
resize: function () { |
|
|
|
resize: function () { |
|
|
|
var self = this, o = this.options; |
|
|
|
var self = this, o = this.options; |
|
|
|
var occupied = this._applyContainer(); |
|
|
|
|
|
|
|
switch (o.layoutType) { |
|
|
|
switch (o.layoutType) { |
|
|
|
case BI.Arrangement.LAYOUT_TYPE.FREE: |
|
|
|
case BI.Arrangement.LAYOUT_TYPE.FREE: |
|
|
|
break; |
|
|
|
break; |
|
|
@ -1828,7 +1827,7 @@ BI.Arrangement = BI.inherit(BI.Widget, { |
|
|
|
}); |
|
|
|
}); |
|
|
|
BI.Arrangement.EVENT_SCROLL = "EVENT_SCROLL"; |
|
|
|
BI.Arrangement.EVENT_SCROLL = "EVENT_SCROLL"; |
|
|
|
BI.extend(BI.Arrangement, { |
|
|
|
BI.extend(BI.Arrangement, { |
|
|
|
PORTION: 32, |
|
|
|
PORTION: 36, |
|
|
|
H_PORTION: 18, |
|
|
|
H_PORTION: 18, |
|
|
|
LAYOUT_TYPE: { |
|
|
|
LAYOUT_TYPE: { |
|
|
|
GRID: 0, |
|
|
|
GRID: 0, |
|
|
|