remove padding from tooltip/link standalone
This commit is contained in:
parent
0570f5cd7e
commit
00e9f5dd2d
1 changed files with 2 additions and 5 deletions
|
|
@ -1544,11 +1544,8 @@ func (g *Graph) SetDimensions(mtexts []*d2target.MText, ruler *textmeasure.Ruler
|
|||
switch shapeType {
|
||||
case shape.TABLE_TYPE, shape.CLASS_TYPE, shape.CODE_TYPE:
|
||||
default:
|
||||
if obj.Link != nil {
|
||||
paddingX += 32
|
||||
}
|
||||
if obj.Tooltip != nil {
|
||||
paddingX += 32
|
||||
if obj.Link != nil && obj.Tooltip != nil {
|
||||
paddingX += 64
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue