kamrify commited on
Commit
ae92478
·
1 Parent(s): 25ec032

Fix - Flicker on position

Browse files
Files changed (1) hide show
  1. src/core/popover.js +2 -2
src/core/popover.js CHANGED
@@ -112,6 +112,8 @@ export default class Popover extends Element {
112
  this.titleNode.innerHTML = this.options.title;
113
  this.descriptionNode.innerHTML = this.options.description;
114
 
 
 
115
  // Position the popover around the given position
116
  switch (this.options.position) {
117
  case 'left':
@@ -131,8 +133,6 @@ export default class Popover extends Element {
131
  this.autoPosition(position);
132
  break;
133
  }
134
-
135
- this.renderButtons();
136
  }
137
 
138
  /**
 
112
  this.titleNode.innerHTML = this.options.title;
113
  this.descriptionNode.innerHTML = this.options.description;
114
 
115
+ this.renderButtons();
116
+
117
  // Position the popover around the given position
118
  switch (this.options.position) {
119
  case 'left':
 
133
  this.autoPosition(position);
134
  break;
135
  }
 
 
136
  }
137
 
138
  /**