1
1
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:
dgis 2016-02-19 17:09:58 +01:00
parent 7f5a677588
commit 5b15fdea88
3 changed files with 5 additions and 0 deletions

Binary file not shown.

Binary file not shown.

View File

@ -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)