note goes out the partition

0 votes
asked May 2, 2017 in Bug by boshka (3,940 points)
If you have an empty partition with a note, the note is rendered outside the partition instead rendering inside the partition:
 
@startuml
start
partition "Correct" {
:a;
note right
Note is inside the partition
end note
}
partition "Wrong" {
 
note right
Note is outside the partition
end note
}
 
stop
@enduml
 
In some earlier versions the note was inside the partition in both cases
 

1 Answer

0 votes
answered May 3, 2017 by plantuml (294,960 points)
Thanks for the report, and for the detailed example.

It should be fixed in last beta

https://www.dropbox.com/s/koo42q3d9gxw288/plantuml.jar?dl=0

Tell us if it's not working for you!

Regards,
commented May 3, 2017 by boshka (3,940 points)
Thanks a lot! this works!
commented May 3, 2017 by boshka (3,940 points)
A bit of enhancement please (see the code):

@startuml
    start
    partition "Empty partition" {
        note: Can the partition be centered\nand the note be over the activity arrow?
    }
    stop
@enduml
commented May 3, 2017 by plantuml (294,960 points)
You're looking for something like this ?

@startuml
start
partition "Empty partition" {
#FBFB77:Can the partition be centered\nand the note be over the activity arrow]
}
stop
@enduml

http://www.plantuml.com/plantuml/uml/SoWkIImgAStDuG8pk0g0H6P9PdwUWf9hRa59fG9SG4cXcalPpSdDoTpSoZanJw4a8nKXgP2Kgf2ScbUIMfIQ4fENc9S2bixBBqa5oUINfHQ11HAJIpBBCe6c9XOLvPV7SjK2RSqlu798pKi1EG40
commented May 3, 2017 by boshka (3,940 points)
edited May 3, 2017 by boshka
not quite. I want it to still be a note (not activity box). I don't want an arrow coming to the note as in your example, but rather be a line behind the note. The way it was in plantuml.8048.jar (there it was almost good except for that the line was rendered over the note's text), but this behavior has changed in 8051

may be a notation like:

note over
     note text
end note

or

note
     note text
end note

or

note: note text

that would mean that I want a note right over the activity line
...