Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » setting a minimum width on a figure
setting a minimum width on a figure [message #201835] Thu, 03 November 2005 21:14
Eclipse UserFriend
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?
Previous Topic:Failures in recent HEAD builds
Next Topic:how create an editable labelText?
Goto Forum:
  


Current Time: Wed Dec 04 18:02:17 GMT 2024

Powered by FUDForum. Page generated in 0.02593 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top