Bug 540816 - Support automatic sizing of bordered nodes according to the label size
Summary: Support automatic sizing of bordered nodes according to the label size
Status: NEW
Alias: None
Product: Sirius
Classification: Modeling
Component: Diagram (show other bugs)
Version: 6.1.0   Edit
Hardware: All All
: P3 enhancement with 2 votes (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: triaged
Depends on:
Blocks:
 
Reported: 2018-11-06 03:54 EST by Pierre-Charles David CLA
Modified: 2018-11-16 03:22 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Pierre-Charles David CLA 2018-11-06 03:54:33 EST
The different styles that can be set on a bordered node (basic shape, workspace image etc.) support dynamic default size, but using a single "Size Computation Expression" (used both for width and height) and it is not possible from it to compute a size that adapts to the size of the label when the label is inside.

Maybe we could support "-1" as a pseudo-size to indicate "let Sirius adjust the size to the content". Not sure this "-1" special casing is the correct mechanism, but some mechanism would be needed.