|
Description
Laurent Redor
This issue is also linked to: * bug 539778 - [ELK] Layout initialization of container elements * bug 553497 - [ELK] Arrange new elements at diagram opening I think that it blocks these other issues. The steps to validate from bug 538373 comment 2 must also be checked (the corresponding code will be changed/reverted partially). Another problem has been detected when selecting only nodes of a container to arrange. The result is the same as standard layout (ELK layout is not used in this case).
Steps to reproduce:
* Import project ELKLayoutProblems_D (from ELKLayoutProblems.zip)
* --- Standard behavior (without ELK) ---
* Open the diagram containerNodeAndBorderNodeDiagram
* Select "C11" and "C12" and launch action "Arrange selection"
* Expected:
* The content of "p1" is correctly layouted: C11 and C12 are on the same line, C12 at the right of C11.
* "p1" is not resized to avoid scrollbar (indeed it is not selected as element to be layouted)
* "p1" is not moved (same reason)
* Select "C21" and "C24" and launch action "Arrange selection"
* Expected:
* The content of "p2" is "correctly" layouted: C21 and C24 have been layouted and also moved to avoid overlap with C22 and C23.
* "p2" is not resized to avoid scrollbar (indeed it is not selected as element to be layouted)
* "p2" is not moved (same reason)
* --- Behavior with ELK ---
* Open the diagram containerNodeAndBorderNodeDiagramWithELK
* Select "C11" and "C12" and launch action "Arrange selection"
* Expected:
* The content of "p1" is correctly layouted: C11 and C12 are on the same line, C12 at the right of C11. But the space between C11 and C12 is smaller than standard layout, and the space it the left of C11 is smaller tha standard layout.
* The top left corner of the C11 and C12 remains fixed.
* "p1" is not resized to avoid scrollbar (indeed it is not selected as element to be layouted)
* "p1" is not moved (same reason)
* Select "C21" and "C24" and launch action "Arrange selection"
* Expected:
* The content of "p2" is "correctly" layouted: C21 and C24 have been layouted and they overlap C22 and C23 (maybe this point will be improved in the future).
* The top left corner of the C21 and C24 remains fixed.
* "p2" is not resized to avoid scrollbar (indeed it is not selected as element to be layouted)
* "p2" is not moved (same reason)
New Gerrit change created: https://git.eclipse.org/r/c/sirius/org.eclipse.sirius/+/171012 New Gerrit change created: https://git.eclipse.org/r/c/sirius/org.eclipse.sirius/+/171013 New Gerrit change created: https://git.eclipse.org/r/c/sirius/org.eclipse.sirius/+/171014 New Gerrit change created: https://git.eclipse.org/r/c/sirius/org.eclipse.sirius/+/171466 New Gerrit change created: https://git.eclipse.org/r/c/sirius/org.eclipse.sirius/+/171467 New Gerrit change created: https://git.eclipse.org/r/c/sirius/org.eclipse.sirius/+/171465 New Gerrit change created: https://git.eclipse.org/r/c/sirius/org.eclipse.sirius/+/171469 New Gerrit change created: https://git.eclipse.org/r/c/sirius/org.eclipse.sirius/+/171470 New Gerrit change created: https://git.eclipse.org/r/c/sirius/org.eclipse.sirius/+/171474 New Gerrit change created: https://git.eclipse.org/r/c/sirius/org.eclipse.sirius/+/171476 New Gerrit change created: https://git.eclipse.org/r/c/sirius/org.eclipse.sirius/+/171477 New Gerrit change created: https://git.eclipse.org/r/c/sirius/org.eclipse.sirius/+/171475 New Gerrit change created: https://git.eclipse.org/r/c/sirius/org.eclipse.sirius/+/171844 Gerrit change https://git.eclipse.org/r/c/sirius/org.eclipse.sirius/+/171014 was merged to [master]. Commit: http://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=602af26b4783f254f86f9d4d9ae08fbba0c97330 Gerrit change https://git.eclipse.org/r/c/sirius/org.eclipse.sirius/+/171465 was merged to [master]. Commit: http://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=e91363a303ee66dc18df06b7bc546df507e74b5a Gerrit change https://git.eclipse.org/r/c/sirius/org.eclipse.sirius/+/171466 was merged to [master]. Commit: http://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=fa93312c74e550c40a6b64ebe91242437335a802 Gerrit change https://git.eclipse.org/r/c/sirius/org.eclipse.sirius/+/171467 was merged to [master]. Commit: http://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=3e2e640c4569fe1214079941922ae7d11030d2b6 Gerrit change https://git.eclipse.org/r/c/sirius/org.eclipse.sirius/+/171469 was merged to [master]. Commit: http://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=e96e20e29cfde10b353b635bc34bc1d4e6ce8f0f Gerrit change https://git.eclipse.org/r/c/sirius/org.eclipse.sirius/+/171012 was merged to [master]. Commit: http://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=eb17055c5bf38d3084c5e08d9bcfdac7dd662c52 Gerrit change https://git.eclipse.org/r/c/sirius/org.eclipse.sirius/+/171470 was merged to [master]. Commit: http://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=789a4f679e177a1b2ca8023fcb3a7c069882fc77 Gerrit change https://git.eclipse.org/r/c/sirius/org.eclipse.sirius/+/171474 was merged to [master]. Commit: http://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=fce346e996a812ec3beed499bbf3da4d85925b96 Gerrit change https://git.eclipse.org/r/c/sirius/org.eclipse.sirius/+/171476 was merged to [master]. Commit: http://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=6605f1b8521015624215049275c1499481c395fe Gerrit change https://git.eclipse.org/r/c/sirius/org.eclipse.sirius/+/171475 was merged to [master]. Commit: http://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=1ecf269c144463b716469c6520346e6178400025 Gerrit change https://git.eclipse.org/r/c/sirius/org.eclipse.sirius/+/171477 was merged to [master]. Commit: http://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=fcc641e1e91063931e71327a2a2495413a863d32 Available in Sirius 6.4.0, see https://download.eclipse.org/sirius/updates/releases/6.4.0/ for details. |