Browse Source

Pull request #1487: 无JIRA任务 bugfix

Merge in VISUAL/fineui from ~GUY/fineui:master to master

* commit 'cb828e51511bfd6e85c47a866d47220cea0c1c55':
  bugfix
  bugfix
es6
guy 4 years ago
parent
commit
0e1d8dd51b
  1. 11
      src/core/controller/controller.bubbles.js

11
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,9 @@ BI.BubblesController = BI.inherit(BI.Controller, {
}
}
}
}
this.get(name).setText(text);
this.get(name).visible();
return this;
},

Loading…
Cancel
Save