Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to set MaximumWidth style for legend #1608

Closed
MOZGIII opened this issue Nov 21, 2023 · 2 comments
Closed

Unable to set MaximumWidth style for legend #1608

MOZGIII opened this issue Nov 21, 2023 · 2 comments
Labels

Comments

@MOZGIII
Copy link
Collaborator

MOZGIII commented Nov 21, 2023

Describe the bug

MaximumWidth style on legend has no effect.

<style>
legend {
  MaximumWidth 100
}
</style>

To Reproduce

@startuml
<style>
legend {
  MaximumWidth 100
  Fontcolor red
}
</style>

legend
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur ornare condimentum turpis aliquam ornare. Curabitur lacinia eget magna et sollicitudin. Phasellus malesuada bibendum sollicitudin. Quisque cursus lacus ac dui facilisis congue. Cras rutrum, mauris id accumsan aliquam, justo leo tempus urna, eu fermentum magna risus sit amet lorem. Nunc volutpat nisl eget urna lacinia auctor. Nullam vel elit vitae dolor tempus sollicitudin. Sed ac pharetra lorem, sit amet eleifend risus. Orci varius natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Phasellus vel tristique risus. Nunc in dolor ultrices, scelerisque dolor nec, vehicula mi. Nulla facilisi.
end legend
@enduml

https://www.plantuml.com/plantuml/png/NPBDZbCn38Ntzody05Tbs8_GI4Yi-06nOEtcUbeZ9xdZdmg4U7USQLG65hsAdEClnyTzC4VrgBBSc_yKUhC8dQXjy6i1-80_k4RznfkVuVNTNPRUzUQbIrTGsfRVo_shsJRxblTTgGBl5XMsPw6n0rRo5KflHiN9Gm4ttjaAjnEGi1_WRIWUULnrRQWqr1jNQfwaBASQKFWfi4x5onx1H352cd2eU6e8UR0kmYK56xS3V3wZaKXO2eGiS4CuyZ5TH_rF-YNOdY8zX5hOeESN2sp1y8Y5XOrjE3p5iA5eeE4QTKrsQDxnbleIrR1DstdtFSmx27LmgdiYGnkkG06Ff7FKg_b4XDsY0ncf7k1Zj0ANBk4xEZGskGuyCBS8C8ft7M8Hh70XUKuOBkn8SoVp-N-7_ah3C-ndL7B5wwFhNnCan8-PrjNS0JvfORYWSf8QUX-1xPGdFcPbxe4Djlpjg1xArBBQcvEjsMA5ifYuZKiyxoNivPg6TLSsvqJFLwyPS9k3XAIW35p2X5AJqddNgAp9E0yuGkKPoMs1XsKCC_-t3_c9Ady0

Expected behavior

The example above should have red text with multiple lines and a limited width.

Instead we get a red text (which means style applies) but a long single line of text.

Screenshots

image

Additional context

Fresh PlantUML download.

It works for rectangles and other types.

@The-Lum
Copy link
Collaborator

The-Lum commented Nov 21, 2023

@arnaudroques
Copy link
Contributor

Many thanks for the report.
This should be fixed in last snapshot.
Please re-open the issue if it is not working for you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants