Community
Participate
Working Groups
Created attachment 263020 [details] Sirius project to reproduce In Sirius we have a functionnality allowing to expand the selection box around a border node when it is very small to facilitate the selection. We have two cases regarding bordered node selection when it is connected to an edge. Either the style of the node produces a visual size equals or greater than 20px. In this case, the bordered node selection box is the size of it. Or the visual size of the node is below 20px. In this case we expand the selection box around it too have a minimum usable selection box that does not require that the user clicks a thousand times to select the border node. Currently the expansion of the selection box on a bordered node connected to an edge can expand over the selection box of an edge if the visual style is too small. In this case if the two bordered node are closed, it is possible to not being able to select the edge at all because the selections box of the two nodes are upon the selection box of the edge and have the priority over the edge selection. This cans happen with no zoom. The problem with the zoom is that the realization of the expansion is currently based on the bordered nodes dimensions without zoom. So if we zoom and we have an acceptable box selection around the bordered node zoomed, we still expand the selection box with a width and edge based on the small visual version whereas we don't want too. Steps to reproduce: -Open the diagram representation "new diag_ecore". -Click on the edge around the nodes. YOu will not be able to select the edge everywhere. -Zoom out or in, the hidden edge portion will be the same whatever the zoom used.
*** Bug 497695 has been marked as a duplicate of this bug. ***
Sequence diagrams might also be impacted. It would also be nice to think about Sequence diagram during non-regression tests.
Created attachment 263039 [details] bug visual We can see that the bordered node is selected whereas it should be the edge.
Created attachment 263040 [details] bug node selection The problem also occurs with node selection when they are too close and too small. When trying to select one of the node, it select the other like in the attachement
Created attachment 263242 [details] Project to test with sequence diagram A test must be done with the sequence diagram to verify the mechanism is working : Steps to verify : 1-Open the sequence diagram "Sequence diagram on" in the project "edgeSelectionSequenceDiagram" 2-Click on the diagram background and apply the filter "Collapse Execution" 3-Click on the edge on the right of the arrow M3
Gerrit change https://git.eclipse.org/r/77601 was merged to [master]. Commit: http://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=f7808468db2b9cb9b219e641f2be5903a7274148
New Gerrit change created: https://git.eclipse.org/r/78264
Gerrit change https://git.eclipse.org/r/78264 was merged to [master]. Commit: http://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=7c16a4469b0ca27f990a7d9b176cfa8863cab063
Available in Sirius 4.1.0, see https://wiki.eclipse.org/Sirius/4.1.0 for details.