From 3ee07f3902d0ae2621c60fa4e7976f2204c5c07e Mon Sep 17 00:00:00 2001 From: Kai Volland Date: Tue, 11 Jun 2019 11:08:15 +0200 Subject: [PATCH] Fixes calculation for hover overlay positioning 'table-cell' is used as display-mode for the wrapping div to ignore child divs, which may transform the wrapper. --- src/plugin/Hover.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugin/Hover.js b/src/plugin/Hover.js index bd6a07020..814ab1f07 100644 --- a/src/plugin/Hover.js +++ b/src/plugin/Hover.js @@ -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) {