guy 7 years ago
parent
commit
1e0a9a7d96
  1. 6
      bi/widget.js
  2. 6
      docs/widget.js
  3. 6
      src/widget/arrangement/arrangement.js

6
bi/widget.js

@ -1664,7 +1664,11 @@ BI.Arrangement = BI.inherit(BI.Widget, {
setDropPosition: function (position, size) {
var self = this;
this.arrangement.setVisible(true);
this._setArrangeSize(BI.extend({}, position, size));
var offset = this._getScrollOffset();
this._setArrangeSize(BI.extend({}, size, {
left: position.left + offset.left,
top: position.top + offset.top
}));
return function () {
self.arrangement.setVisible(false);
}

6
docs/widget.js

@ -1664,7 +1664,11 @@ BI.Arrangement = BI.inherit(BI.Widget, {
setDropPosition: function (position, size) {
var self = this;
this.arrangement.setVisible(true);
this._setArrangeSize(BI.extend({}, position, size));
var offset = this._getScrollOffset();
this._setArrangeSize(BI.extend({}, size, {
left: position.left + offset.left,
top: position.top + offset.top
}));
return function () {
self.arrangement.setVisible(false);
}

6
src/widget/arrangement/arrangement.js

@ -870,7 +870,11 @@ BI.Arrangement = BI.inherit(BI.Widget, {
setDropPosition: function (position, size) {
var self = this;
this.arrangement.setVisible(true);
this._setArrangeSize(BI.extend({}, position, size));
var offset = this._getScrollOffset();
this._setArrangeSize(BI.extend({}, size, {
left: position.left + offset.left,
top: position.top + offset.top
}));
return function () {
self.arrangement.setVisible(false);
}

Loading…
Cancel
Save