ConditionEndStyle hline to long when note is present

0 votes
asked 3 days ago 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 3 days ago by The-Lu (21,320 points)

Hello L.,

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

Regards,
Th.

commented 1 day ago by albert (3,000 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 1 day ago by The-Lu (21,320 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.
...