mirror of
https://github.com/dgis/xsddiagram.git
synced 2024-08-17 06:20:23 +03:00
Improve the documentation location on the diagram.
This commit is contained in:
parent
7f5a677588
commit
5b15fdea88
BIN
XSDDiagram.exe
BIN
XSDDiagram.exe
Binary file not shown.
Binary file not shown.
@ -577,6 +577,11 @@ namespace XSDDiagram.Rendering
|
||||
case DiagramAlignement.Center:
|
||||
_location.Y = _boundingBox.Y +
|
||||
(_boundingBox.Height - _size.Height) / 2;
|
||||
if(_diagram.ShowDocumentation && _documentationBox != null)
|
||||
{
|
||||
_location.Y = _boundingBox.Y +
|
||||
(_boundingBox.Height - (2 * _padding.Height + _documentationBox.Height)) / 2;
|
||||
}
|
||||
break;
|
||||
case DiagramAlignement.Near:
|
||||
if (_itemType == DiagramItemType.group && _parent != null && _parent.ChildElements.Count == 1)
|
||||
|
Loading…
Reference in New Issue
Block a user