[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.tools.gef] Re: Problem with Figure and ToolbarLayout

Tim,

setStretchMinorAxis(true) will stretch the children to take up additional
space vertically, not horizontally.  Look at ToolbarLayoutExample in the
org.eclipse.draw2d.examples project (you'll have to get it from the CVS
repository) to see how the ToolbarLayout works.

"Tim" <tim_j_shelley@xxxxxxxxxxx> wrote in message
news:cnasv1$ulh$1@xxxxxxxxxxxxxx
> Hi all,
>
> I have a simple rectangle of a figure and I am adding horizontally seven
> smaller rectangles. I used the ToobarLayout because it said something
about
> resizing the children to fill the space of the parent. The problem is the
> smaller figures are not being expanded (the smaller figures have no
content)
> a,d i have set:  layout.setStretchMinorAxis(true);
>
> How do I do this or trigger this resizing of children. Thanks in advance.
>
> Regards,
>
> Tim.
>
>