|Re: Auto Resizing Containers [message #1770636 is a reply to message #1769998]
||Tue, 15 August 2017 12:12
| Thanos Zolotas
Registered: November 2016
I made some progress on that but I am afraid I still need your help. |
In the localChangesAboutToCommit(Collection<Notification>), I collect all the container nodes (those that are instances of Bounds) and then in the doExecute method I call the setWidth() and setHeight() methods to set the specific dimensions I need (I also tried to create a new setCommand like this: Command setCommand = new SetCommand(domain, myBound, NotationPackage.eINSTANCE.getSize_Width(), 200);).
When I create a new container node, it is created with the custom dimensions I set, the contained subnodes' labels are wrapped as they should be however, after a second or so the dimensions are reset to fit the subnodes' labels in one line. I guess that another command is called after mine in the doExecute method that resets the dimensions.
I tried to debug this, it must be something happening inside the someAreVisible(List<MWindow> windows) method of the PartRendering class however, there is no chance to identify what is that, as the loop in there is executed hundereds of times. Any idea?
Powered by FUDForum
. Page generated in 0.02431 seconds