fix grid label font size in tala
This commit is contained in:
parent
c4ba2074de
commit
4a9a5119ed
1 changed files with 2 additions and 1 deletions
|
|
@ -584,7 +584,8 @@ func (obj *Object) Text() *d2target.MText {
|
||||||
}
|
}
|
||||||
|
|
||||||
if obj.OuterSequenceDiagram() == nil {
|
if obj.OuterSequenceDiagram() == nil {
|
||||||
if obj.IsContainer() && obj.Shape.Value != "text" {
|
// Note: during grid layout when children are temporarily removed `IsContainer` is false
|
||||||
|
if (obj.IsContainer() || obj.IsGridDiagram()) && obj.Shape.Value != "text" {
|
||||||
fontSize = obj.Level().LabelSize()
|
fontSize = obj.Level().LabelSize()
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue