diff --git a/lib/util/Text.js b/lib/util/Text.js index 194a7f55d..e93bd9f95 100644 --- a/lib/util/Text.js +++ b/lib/util/Text.js @@ -12,6 +12,10 @@ import { remove as svgRemove } from 'tiny-svg'; +import { + assignStyles +} from 'min-dom'; + var DEFAULT_BOX_PADDING = 0; var DEFAULT_LABEL_SIZE = { @@ -196,7 +200,10 @@ function getHelperSvg() { svgAttr(helperSvg, { id: 'helper-svg', width: 0, - height: 0, + height: 0 + }); + + assignStyles(helperSvg, { visibility: 'hidden', position: 'fixed' });