I have a series of data points with paths that define regions, I'm overlaying them on a map image. When I hover the pointer over a region, I want the tooltip to show some text and a thumbnail image. The tooltip (highcharts-label) is showing the image, but there is a white box behind it (svg highcharts-root) that sometimes is sized to be underneath the entire label area and sometimes is smaller than the label area. Refreshing the page without changing the data can change whether or not the tooltip container is sized correctly, and the tooltip containers for the different regions also vary in whether or not they are sized correctly.
I'd actually rather not have the white svg element at all, but I don't know why it's being created or how to override it.
```
import Highcharts from 'highcharts';
import HighchartsReact from 'highcharts-react-official';
import highchartsMap from 'highcharts/modules/map';
highchartsMap(Highcharts);
<HighchartsReact
constructorType="mapChart"
highcharts={Highcharts}
options={options}
/>
const options = {
tooltip: {
useHTML: true,
headerFormat: '<div style="backgroundColor: {point.color};">',
footerFormat: '</div>',
pointFormatter(): string {
let tooltip = ``;
tooltip += '<table><tr>';
tooltip += `<td>${this.name}</td><td><img src=${this.thumb} /></td>`;
tooltip += '</tr></table>';
return tooltip;
},
},
...
```
This is the resulting element when the container is correctly sized. Notice the svg width=164 height=114
```
<div class="highcharts-tooltip-container" style="position: absolute; top: 477px; pointer-events: none; z-index: 3; left: 394px; transform: scale(1, 0.999808);" dir="ltr">
<svg version="1.1" class="highcharts-root" style="font-family: Helvetica, Arial, sans-serif; font-size: 1rem;" xmlns="http://www.w3.org/2000/svg" width="164" height="114" viewBox="0 0 164 114">
<desc>Created with Highcharts 11.1.0</desc>
<defs><filter id="highcharts-drop-shadow-undefined"><feDropShadow dx="1" dy="1" flood-color="#000000" flood-opacity="0.75" stdDeviation="2.5"></feDropShadow></filter></defs>
<g class="highcharts-label highcharts-tooltip highcharts-color-0" data-z-index="8" filter="none" style="cursor: default; pointer-events: none; width: 1508px;" transform="translate(16,16)" opacity="1"><path fill="#ffffff" class="highcharts-label-box highcharts-tooltip-box" d="M 3 0 L 129 0 A 3 3 0 0 1 132 3 L 132 79 A 3 3 0 0 1 129 82 L 3 82 A 3 3 0 0 1 0 79 L 0 3 A 3 3 0 0 1 3 0 Z" stroke-width="0" stroke="#C7F0F4"></path></g>
</svg>
<div class="highcharts-label highcharts-tooltip highcharts-color-0" style="position: absolute; left: 16px; top: 16px; opacity: 1; cursor: default; pointer-events: none; visibility: inherit;">
<span data-z-index="1" style="position: absolute; font-family: Helvetica, Arial, sans-serif; font-size: 0.8em; white-space: nowrap; color: rgb(51, 51, 51); margin-left: 0px; margin-top: 0px; left: 8px; top: 8px;"><div style="background-color: rgb(199, 240, 244);"><table><tbody><tr><td>Midtown</td><td><img src="/vtm-wayward-children/src/assets/character/maxwell_thumb.jpg"></td></tr></tbody></table></div></span>
</div>
</div>
```
This is that same element after a page reload (no data change), when the szg isn't sized correctly. Notice the svg width=100 and height=69
```
<div class="highcharts-tooltip-container" style="position: absolute; top: 417px; pointer-events: none; z-index: 3; left: 371.778px; transform: scale(1, 0.999808);" dir="ltr">
<svg version="1.1" class="highcharts-root" style="font-family: Helvetica, Arial, sans-serif; font-size: 1rem;" xmlns="http://www.w3.org/2000/svg" width="100" height="69" viewBox="0 0 100 69">
<desc>Created with Highcharts 11.1.0</desc>
<defs><filter id="highcharts-drop-shadow-undefined"><feDropShadow dx="1" dy="1" flood-color="#000000" flood-opacity="0.75" stdDeviation="2.5"></feDropShadow></filter></defs>
<g class="highcharts-label highcharts-tooltip highcharts-color-0" data-z-index="8" filter="none" style="cursor: default; pointer-events: none; width: 1508px;" transform="translate(16,16)" opacity="1"><path fill="#ffffff" class="highcharts-label-box highcharts-tooltip-box" d="M 3 0 L 65 0 A 3 3 0 0 1 68 3 L 68 34 A 3 3 0 0 1 65 37 L 3 37 A 3 3 0 0 1 0 34 L 0 3 A 3 3 0 0 1 3 0 Z" stroke-width="0" stroke="#C7F0F4"></path></g>
</svg>
<div class="highcharts-label highcharts-tooltip highcharts-color-0" style="position: absolute; left: 16px; top: 16px; opacity: 1; cursor: default; pointer-events: none; visibility: inherit;">
<span data-z-index="1" style="position: absolute; font-family: Helvetica, Arial, sans-serif; font-size: 0.8em; white-space: nowrap; color: rgb(51, 51, 51); margin-left: 0px; margin-top: 0px; left: 8px; top: 8px;"><div style="background-color: rgb(199, 240, 244);"><table><tbody><tr><td>Midtown</td><td><img src="/vtm-wayward-children/src/assets/character/maxwell_thumb.jpg"></td></tr></tbody></table></div></span>
</div>
</div>
```
"highcharts": "^11.1.0",
"highcharts-react-official": "^3.2.1",