Community
Participate
Working Groups
Created attachment 261900 [details] customStyle.vsp.zip For a node using a WorkspaceImage style, if the "size computation expression" is "-1", the size of the node is computing according to image size. It seems not possible to do the same for a Custom style with an edit part that uses an image. Steps to reproduce: * Import the project customStyle.vsp (from customStyle.vsp.zip) in your workspace * Launch a runtime * Import the project SampleWithCustomStyle (from customStyle.sample.zip) in your runtime * Open the diagrm * OK: The border node using a workspace image has the size of the image: 16x16 pixels. * KO: The custom style that uses the same image has not the size of the image.
Created attachment 261901 [details] customStyle.sample.zip
There is specific code in DNodeQuery.getDefaultDimension() for the WorkspaceImage style but no way to make similar for Custom style. A solution would be to have a size computation expression in pixels (and not in ten pixels). This solution is impacting (migration of existing expressions) but seems to be the best.
reproduced on sirius 4 master 23/05/2016 Note that you can select the node with the custom style to better put the issue in evidence (selection is larger than the icon)