Skip to content

Commit

Permalink
Merge pull request #463 from KaiVolland/hover-positioning
Browse files Browse the repository at this point in the history
Fixes calculation for hover overlay positioning
  • Loading branch information
KaiVolland committed Jun 11, 2019
2 parents adf289e + 3ee07f3 commit 24787a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugin/Hover.js
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,7 @@ Ext.define('BasiGX.plugin.Hover', {
*/
getPositioningConfig: function(pixel, div, mapComponent) {
// measure the passed div first:
div.style.display = 'inline'; // so we can measure it!
div.style.display = 'table-cell'; // so we can measure it!
var divEl = Ext.get(Ext.getBody().dom.appendChild(div));
var divDims = [divEl.getWidth(), divEl.getHeight()];
if (this.maxHeight) {
Expand Down

0 comments on commit 24787a1

Please sign in to comment.