Bug 168950 - [ClassD] Should be possible to horizontally decrease elements
Summary: [ClassD] Should be possible to horizontally decrease elements
Status: VERIFIED FIXED
Alias: None
Product: GMF-Tooling (ARCHIVED)
Classification: Modeling
Component: Samples (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Tatiana Fesenko CLA
QA Contact:
URL:
Whiteboard:
Keywords: contributed
Depends on:
Blocks:
 
Reported: 2006-12-22 14:58 EST by Tatiana Fesenko CLA
Modified: 2012-12-11 15:11 EST (History)
0 users

See Also:


Attachments
Alloes figures' resize in all derections (263.89 KB, text/plain)
2006-12-29 16:31 EST, Tatiana Fesenko CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tatiana Fesenko CLA 2006-12-22 14:58:00 EST
Build ID:  I20061102-1715

Steps To Reproduce:
1.Create ClassD
2.Create Class(Package, Enumeration, Primitive Type, Data Type)
3. Increase its size. 
Try decrease figure. It's OK with vertical dimension, but it's not possible in horizontal one. 

More information:
Comment 1 Tatiana Fesenko CLA 2006-12-27 14:28:22 EST
The same with Enumeration and Profile elements in ProfileDefD
Comment 2 Tatiana Fesenko CLA 2006-12-29 16:31:46 EST
Created attachment 56251 [details]
Alloes figures' resize in all derections

See GridLayout which is used in this figures. It returns preferred size (inhereted from AbstractLayout) getMinimumSize(). 
In org.eclipse.draw2d.Figure getPreferredSize uses following algorithm:
..
if (figure.getLayoutManager() == null) return getSize().

So it was needed to set some LayoutManager to compartment figures that didn't have one.
Comment 3 Michael Golubev CLA 2007-01-04 08:24:23 EST
Reviewed and committed
Comment 4 Michael Golubev CLA 2007-02-01 19:30:25 EST
Fixed in M4b
Comment 5 Nick Boldt CLA 2008-01-28 16:38:00 EST
Move to verified as per bug 206558.