Selected item moves to the bottom of a compartment #1550
-
I need help with understanding the following behaviour: I have a tree structure like the following: GNode has a GCompartment for attributes of a class. For each attribute, there is another GCompartment with some GLabels inside. When I select a single attribute, it for some reason I cannot explain moves to the bottom of the list of attributes. This is not reflected in the semantic / notation model, as is visible after reloading the model. This behaviour happens for elements that are resizeable, but not for the ones that do not allow it. Please note that the GCompartment for a single attribute is not moveable per the configuration. I very much appreciate your help here, thanks! If you need more information, please let me know. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
@xXNicksdaXx That is very curious indeed! I Just had a look at the code and I have a feeling that this has to do with the I think you could try to rebind the |
Beta Was this translation helpful? Give feedback.
@xXNicksdaXx That is very curious indeed! I Just had a look at the code and I have a feeling that this has to do with the
BringToFront
action that is sent on selection. This action is handled by moving the selected element as a first child of its parent which is reasonable in a free-form layout as SVG renders elements as defined by order but it does not make much sense in a parent where you use avbox
orhbox
layout where the order actually also changes the position of the element. The reason is only happens for resizable elements is probably because that triggers a re-layout whereas otherwise that does not happen so the actual change in the element order is not reflected in the rendering.…