add class row ascii diagram
This commit is contained in:
parent
ce0d81650d
commit
781194e8ba
1 changed files with 6 additions and 0 deletions
|
|
@ -764,6 +764,12 @@ func (obj *Object) GetDefaultSize(mtexts []*d2target.MText, ruler *textmeasure.R
|
||||||
maxWidth = lineWidth
|
maxWidth = lineWidth
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// ┌─PrefixWidth ┌─CenterPadding
|
||||||
|
// ┌─┬─┬───────┬──────┬───┬──┐
|
||||||
|
// │ + getJobs() Job[] │
|
||||||
|
// └─┴─┴───────┴──────┴───┴──┘
|
||||||
|
// └─PrefixPadding └──TypePadding
|
||||||
|
// ├───────┤ + ├───┤ = maxWidth
|
||||||
dims.Width = d2target.PrefixPadding + d2target.PrefixWidth + maxWidth + d2target.CenterPadding + d2target.TypePadding
|
dims.Width = d2target.PrefixPadding + d2target.PrefixWidth + maxWidth + d2target.CenterPadding + d2target.TypePadding
|
||||||
|
|
||||||
// All rows should be the same height
|
// All rows should be the same height
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue