Bug 451652 - Can not Auto Resize the Horizontal dimension of Nodes which are defined as Square Style
Summary: Can not Auto Resize the Horizontal dimension of Nodes which are defined as Sq...
Status: NEW
Alias: None
Product: Sirius
Classification: Modeling
Component: Diagram (show other bugs)
Version: 1.0.0M7   Edit
Hardware: PC Windows 7
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: triaged
Depends on:
Blocks:
 
Reported: 2014-11-15 02:58 EST by khanh tran CLA
Modified: 2014-11-17 04:43 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 khanh tran CLA 2014-11-15 02:58:08 EST
Hello all, 
I 'm currently developer an application using Sirius 1.0, and i got a problem with using Square Style supported by Sirius. 

In My Application, I use Square Style for Nodes in .odesign file. and I want all Nodes in the Graphical Editor will be automatically resized whenever i changed any Node name. but I only want to resize the horizontal dimension of this Node to fit with the new name, so I can't set the constant value in Height and Width in advanced tap of Properties view.

I tried with Size Computation Expression, but this expression get one Integer value that will be set for all Width and Height, and I got a square shape again.

The Rectangle is the basic Shape that Sirius should support and its Style should provide two different computation expression for Width and Height. This will helpful for developers who want to reuse a basic Sirius Shape and customize its size as expectation of them also.
Comment 1 Laurent Redor CLA 2014-11-17 04:43:35 EST
I currently see 2 feature requests in your bugzilla:
* Autosize on node (like on Container)
* "New style" on node: Rectangle (A Square style with 2 size computation expressions, one for the width and the other for the height).

You could, maybe, use a container (without contents) for your described nodes. Thus, you would have access to the features sought.