#2315 Fixing issue with padding between actors and content in sequence diagram

This commit is contained in:
Knut Sveidqvist
2021-09-18 08:26:49 +02:00
parent 9faa5acb21
commit 0fcabfae05
2 changed files with 19 additions and 2 deletions

View File

@@ -444,7 +444,7 @@ export const drawActors = function (diagram, actors, actorKeys, verticalPos) {
}
// Add a margin between the actor boxes and the first arrow
bounds.bumpVerticalPos(maxHeight-conf.boxMargin);
bounds.bumpVerticalPos(maxHeight);
};
export const setConf = function (cnf) {
@@ -689,7 +689,7 @@ export const draw = function (text, id) {
// Draw actors below diagram
bounds.bumpVerticalPos(conf.boxMargin * 2);
drawActors(diagram, actors, actorKeys, bounds.getVerticalPos());
bounds.bumpVerticalPos(conf.boxMargin*2);
bounds.bumpVerticalPos(conf.boxMargin);
fixLifeLineHeights(diagram, bounds.getVerticalPos());
}