alt/opt/etc do not extend to encompass ref box

0 votes
asked Jan 10, 2020 in Bug by jrosiek (240 points)

alt/opt/etc boxes do not extend to encompass ref box. This should work the same way as for notes.

@startuml

activate A
    alt
        ref over A
            Lorem ipsum dolor sit amet, consectetur adipiscing elit.
        end ref
    else

    end alt

    opt
        ref over A
            Lorem ipsum dolor sit amet, consectetur adipiscing elit.
        end ref
    end opt

    opt
        note over A: Lorem ipsum dolor sit amet, consectetur adipiscing elit.
    end opt
deactivate A

@enduml

1 Answer

0 votes
answered Sep 16, 2021 by Largo (160 points)
edited Sep 16, 2021 by Largo

it works with teoz engine:

@startuml
!pragma teoz true
opt
        ref over A
           Lorem ipsum dolor sit amet, consectetur adipiscing elit.
        end
end
@enduml

with the "legacy" engine, it also works if you have more than 1 participant

@startuml
opt
        ref over A, B
           Lorem ipsum dolor sit amet, consectetur adipiscing elit.
        end
end
@enduml

...