fix grid label font size in tala

This commit is contained in:
Gavin Nishizawa 2023-06-15 14:33:37 -07:00
parent c4ba2074de
commit 4a9a5119ed
No known key found for this signature in database
GPG key ID: AE3B177777CE55CD

View file

@ -584,7 +584,8 @@ func (obj *Object) Text() *d2target.MText {
}
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()
}
} else {