Bug 530198 - [Decorator] Decorator group may contain more than the expected decorator number
Summary: [Decorator] Decorator group may contain more than the expected decorator number
Status: UNCONFIRMED
Alias: None
Product: Sirius
Classification: Modeling
Component: Diagram (show other bugs)
Version: 5.1.0   Edit
Hardware: PC Windows 10
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: triaged
Depends on:
Blocks:
 
Reported: 2018-01-23 10:53 EST by Guillaume Coutable CLA
Modified: 2018-01-25 05:10 EST (History)
1 user (show)

See Also:


Attachments
The family meta model (315.46 KB, application/x-zip-compressed)
2018-01-23 10:54 EST, Guillaume Coutable CLA
no flags Details
Project used to reproduce the issue (111.26 KB, application/x-zip-compressed)
2018-01-23 10:55 EST, Guillaume Coutable CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Guillaume Coutable CLA 2018-01-23 10:53:29 EST

    
Comment 1 Guillaume Coutable CLA 2018-01-23 10:54:15 EST
Created attachment 272377 [details]
The family meta model
Comment 2 Guillaume Coutable CLA 2018-01-23 10:55:29 EST
Created attachment 272378 [details]
Project used to reproduce the issue
Comment 3 Guillaume Coutable CLA 2018-01-23 11:24:52 EST
Steps to reproduce with OD 10.1:
1) Import the Family meta model [attachment 272377 [details]]
2) Launch a runtime then import the Project [attachment 272378 [details]]
3) Open the Sirius Diagram appearance preferences (Window/Preferences/Sirius/Sirius Diagram/Appearance)
4) Uncheck the "Authorize decoration overlapping" preference
5) Create a new Person diagram then activate the parents layer
6) Open the family.odesign then duplicate the "WithChildren" Mapping Based Decoration until having 9 of them (each decoration must be at a different position)
7) Refresh the Person diagram -> A decorator group should appears on persons that have children
8) In the family.odesign remove the added decorations -> The decorator should be replaced by only one decorator
9) Enlarge Anna
10) Re-add decorations in family.odesign then refresh the Persons Diagram
11) Anna should have 9 decorators
12) Shrink anna to its initial size (auto-size)
13) Hover the Anna decorator group -> it contains more than 9 decorators (like the others element on the diagram)
Comment 4 Guillaume Coutable CLA 2018-01-23 11:36:50 EST
Remark: The documentation of "Authorize decoration overlapping" preference could be improved by saying that refresh the diagram after (de)activate the preference will not update the decoration. The decoration will be updated after a sematic or a graphical modification.