guy 4 years ago
parent
commit
cb828e5151
  1. 9
      src/core/controller/controller.bubbles.js

9
src/core/controller/controller.bubbles.js

@ -179,8 +179,7 @@ BI.BubblesController = BI.inherit(BI.Controller, {
break;
}
}
return this;
}
} else {
var position = this._getTopPosition(name, context, offsetStyle);
this.get(name).element.css({left: position.left + adjustXOffset, top: position.top - adjustYOffset});
if (!BI.DOM.isTopSpaceEnough(context, this.get(name), adjustYOffset)) {
@ -212,7 +211,10 @@ BI.BubblesController = BI.inherit(BI.Controller, {
});
this.set(name, this.storeBubbles[name]["right"]);
var position = this._getRightPosition(name, context, offsetStyle);
this.get(name).element.css({left: position.left + adjustXOffset, top: position.top - adjustYOffset});
this.get(name).element.css({
left: position.left + adjustXOffset,
top: position.top - adjustYOffset
});
if (!BI.DOM.isRightSpaceEnough(context, this.get(name), adjustXOffset)) {
this.get(name).invisible();
if (!this.storeBubbles[name]["left"]) {
@ -234,6 +236,7 @@ BI.BubblesController = BI.inherit(BI.Controller, {
}
}
}
}
this.get(name).setText(text);
this.get(name).visible();
return this;

Loading…
Cancel
Save