Fix wrong margin on symbols
This commit is contained in:
parent
1c8cebf0f5
commit
05eb5d5ef0
1 changed files with 3 additions and 3 deletions
|
@ -1,7 +1,7 @@
|
|||
import { Interweave } from 'interweave';
|
||||
import * as React from 'react';
|
||||
import { type ISymbolModel } from '../../../Interfaces/ISymbolModel';
|
||||
import { DIMENSION_MARGIN } from '../../../utils/default';
|
||||
import { SYMBOL_MARGIN } from '../../../utils/default';
|
||||
|
||||
interface ISymbolProps {
|
||||
model: ISymbolModel
|
||||
|
@ -16,11 +16,11 @@ export function Symbol(props: ISymbolProps): JSX.Element {
|
|||
let x, y: number;
|
||||
|
||||
if (props.model.isVertical) {
|
||||
x = -DIMENSION_MARGIN;
|
||||
x = -SYMBOL_MARGIN;
|
||||
y = props.model.offset;
|
||||
} else {
|
||||
x = props.model.offset;
|
||||
y = -DIMENSION_MARGIN;
|
||||
y = -SYMBOL_MARGIN;
|
||||
}
|
||||
|
||||
if (hasSVG) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue