Bug 499828 - Wrong compartments/regions size and useless scroll bar
Summary: Wrong compartments/regions size and useless scroll bar
Status: CLOSED FIXED
Alias: None
Product: Sirius
Classification: Modeling
Component: Diagram (show other bugs)
Version: 3.1.0   Edit
Hardware: PC Windows NT
: P3 normal (vote)
Target Milestone: 4.0.1   Edit
Assignee: Laurent Redor CLA
QA Contact: Julien Dupont CLA
URL:
Whiteboard:
Keywords: triaged
Depends on: 495119
Blocks: 492607 497403
  Show dependency tree
 
Reported: 2016-08-17 08:55 EDT by Pierre-Charles David CLA
Modified: 2016-11-04 10:15 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Pierre-Charles David CLA 2016-08-17 08:55:29 EDT
+++ This bug was initially created as a clone of Bug #495119 +++

If a size is defined in the VSM for a container with VStack or HStack as children presentation type, this can lead to a useless scroll bar.

Steps to reproduce:
* Imports the project from compartments.zip (https://bugs.eclipse.org/bugs/attachment.cgi?id=262135 from bug 495046)
* Open the diagram VStackDiag
* Use the tool EPackage to create a package container on the diagram with default size (only one click on the diagram)
* Use the tool EClassList to create a class in the package
* KO: A scroll bar appears in the container. 

Another steps to reproduce:
* Use same diagram
* Use the tool EPackageWithOneClass to create a package container with a class inside it with default size (only one click on the diagram)
* KO: A scroll bar appears in the container.

This scroll bar does not disappear even if the container is resized.

The problem does not exist if the size of the VStack container mapping defined of the VSM is {-1, -1} instead of {5, 5}.
Comment 1 Pierre-Charles David CLA 2016-08-17 08:55:55 EDT
Cloned to report the fix in Sirius 4.0.1.
Comment 2 Eclipse Genie CLA 2016-08-23 09:52:39 EDT
New Gerrit change created: https://git.eclipse.org/r/79521
Comment 3 Eclipse Genie CLA 2016-08-23 09:52:42 EDT
New Gerrit change created: https://git.eclipse.org/r/79524
Comment 4 Eclipse Genie CLA 2016-08-23 09:52:44 EDT
New Gerrit change created: https://git.eclipse.org/r/79523
Comment 5 Eclipse Genie CLA 2016-08-23 09:52:46 EDT
New Gerrit change created: https://git.eclipse.org/r/79522
Comment 6 Eclipse Genie CLA 2016-08-23 09:52:50 EDT
New Gerrit change created: https://git.eclipse.org/r/79528
Comment 7 Eclipse Genie CLA 2016-08-23 09:52:52 EDT
New Gerrit change created: https://git.eclipse.org/r/79525
Comment 14 Pierre-Charles David CLA 2016-11-04 10:15:34 EDT
Available in Sirius 4.0.1. See https://wiki.eclipse.org/Sirius/4.0.1.