ConditionEndStyle hline to long when note is present

0 votes
asked May 3, 2021 in Bug by Lutz DIttrich (120 points)
The hline at "activity B" is to long.

Code:

@startuml

skinparam ConditionEndStyle hline

start

if (condition?) then (yes)

:activity A;

else (no)

:activity B;

floating note right: This is a note

endif

stop

@enduml
commented May 3, 2021 by The-Lu (63,920 points)

Hello L.,

A possible workaround is to put the note just after the 'endif':

Regards,
Th.

commented May 5, 2021 by albert (3,520 points)

I think for the specified test case it looks OK, though when we have e.g.:

@startuml
skinparam ConditionEndStyle hline

start

if (condition?) then (yes)

:activity A;

else (no)

:activity B;
floating note right: This is a note
:activity C;
:activity D;

endif

stop
@enduml

It doesn't look that good (placing of the note) anymore:

@startuml
skinparam ConditionEndStyle hline
start
if (condition?) then (yes)
:activity A;
else (no)
:activity B;
:activity C;
:activity D;
endif
floating note right: This is a note
stop
@enduml
commented May 5, 2021 by The-Lu (63,920 points)

You are right: the defect of hline too long remains...

or

er even:

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:

[Antispam2 Feature: please please wait 1 or 2 minutes (this message will disappear) before pressing the button otherwise it will fail](--------)
To avoid this verification in future, please log in or register.
...