setting a minimum width on a figure [message #201835] |
Thu, 03 November 2005 21:14 |
Eclipse User |
|
|
|
Originally posted by: pbeagan.yahoo_dontspamme_.com
I want to have a minimum width on a rectangular Item figure. My Item figure
is based off the schema example table figure. So it has a directly
editable name label figure and child object figures.
I want to set the minimum with so that my Item figure has a width of 120
minimum, BUT will expand to any width of child objects. So that during
direct edits, it does not shrink to almost zero width. I've constrained
my Item model so that the in the getBounds() method, if the width is less
than 120, it overrides.
The problem is this: in order to have the Item figure expand to contain the
greatest width of its children, I need to set size contraints to -1, -1 in
the Item editParts. In doing so I lose my minimum width constraint set in
my model. If I enforce my minimum width constraint in my editparts, I lose
the auto sizing that I want when a child figure is greater than 120 width.
Seems like GEF (or my flawed approach ) is making me choose between fixed
width or auto width.
Any ideas?
|
|
|
Powered by
FUDForum. Page generated in 0.02593 seconds