Skip to content

Commit

Permalink
fix(util): properly assign helper-svg styles
Browse files Browse the repository at this point in the history
  • Loading branch information
nikku committed Jul 6, 2022
1 parent ffe6107 commit c74e07e
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion lib/util/Text.js
Expand Up @@ -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 = {
Expand Down Expand Up @@ -196,7 +200,10 @@ function getHelperSvg() {
svgAttr(helperSvg, {
id: 'helper-svg',
width: 0,
height: 0,
height: 0
});

assignStyles(helperSvg, {
visibility: 'hidden',
position: 'fixed'
});
Expand Down

0 comments on commit c74e07e

Please sign in to comment.