提交 ae924787 编写于 作者: K Kamran Ahmed

Fix - Flicker on position

上级 25ec032b
...@@ -112,6 +112,8 @@ export default class Popover extends Element { ...@@ -112,6 +112,8 @@ export default class Popover extends Element {
this.titleNode.innerHTML = this.options.title; this.titleNode.innerHTML = this.options.title;
this.descriptionNode.innerHTML = this.options.description; this.descriptionNode.innerHTML = this.options.description;
this.renderButtons();
// Position the popover around the given position // Position the popover around the given position
switch (this.options.position) { switch (this.options.position) {
case 'left': case 'left':
...@@ -131,8 +133,6 @@ export default class Popover extends Element { ...@@ -131,8 +133,6 @@ export default class Popover extends Element {
this.autoPosition(position); this.autoPosition(position);
break; break;
} }
this.renderButtons();
} }
/** /**
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册