Closed Spenhouet closed 7 years ago
In the line 684 and 694 the arrow position is set:
if (arrowOffset === 'center') { arrowEl.style.top = Math.floor((bubbleBoundingHeight / 2) - arrowEl.offsetHeight/2) + 'px'; }
but the arrow container (arrowEl) doesn't have the correct offsetWidth or offsetHeight. It's always 15 x 15.
bubble-arrow-container { width: 15px; height: 15px; }
Therefor the arrow position is always wrong.
For a quick fix, i just replaced this line with the following hard coded half of arrow height + border ((34 + 10) / 2):
if (arrowOffset === 'center') { arrowEl.style.top = Math.floor(bubbleBoundingHeight / 2) - 22 + 'px'; }
In the line 684 and 694 the arrow position is set:
but the arrow container (arrowEl) doesn't have the correct offsetWidth or offsetHeight. It's always 15 x 15.
Therefor the arrow position is always wrong.
For a quick fix, i just replaced this line with the following hard coded half of arrow height + border ((34 + 10) / 2):