Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » FlowLayout doesn't calculate its size automatically?
FlowLayout doesn't calculate its size automatically? [message #188587] Thu, 21 July 2005 16:38 Go to next message
Eclipse UserFriend
Originally posted by: zhlmmc.hotmail.com

I find if I set "FlowLayout.setHorizontal(false);", my container figure
will not calculate its size automatically when I add some child to it.
Bug?
Any solution?
Thanks a million.
Re: FlowLayout doesn't calculate its size automatically? [message #188606 is a reply to message #188587] Thu, 21 July 2005 17:05 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

Sounds like you are doing something wrong. Please post a snippet with the
problem.

"zhlmmc" <zhlmmc@hotmail.com> wrote in message
news:1993b31a1b497b315af94ced55446119$1@www.eclipse.org...
>I find if I set "FlowLayout.setHorizontal(false);", my container figure
>will not calculate its size automatically when I add some child to it.
> Bug?
> Any solution?
> Thanks a million.
>
Re: FlowLayout doesn't calculate its size automatically? [message #188628 is a reply to message #188606] Thu, 21 July 2005 17:23 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: zhlmmc.hotmail.com

Sorry, I can only access this newsgroup through web...
I mean that my ContainerFigure will calculate its size automatically and
paint itself correctly when I add a new child to it.(The layout of my
ContainerFigure is FlowLayout)
But if I call "FlowLayout.setHorizontal(false)", the ContainerFigure will
not paint itself correctly when I add a new child to it, in another word,
my ContainerFigure's size will remains the same as before.I have to drag
the bounds so that I can see the newly added item.
Re: FlowLayout doesn't calculate its size automatically? [message #188834 is a reply to message #188628] Fri, 22 July 2005 19:00 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: none.unknown.com

What is the container figure's parent's layout? It's that layout's job to
resize the container figure. The container figure's flowlayout places the
children of the container figure in whatever space is available. It does
not resize the container figure. It should, however, calculate the proper
preferred size for the container (when asked for by the container figure's
parent's layout manager).

"zhlmmc" <zhlmmc@hotmail.com> wrote in message
news:d2f22938f39c63c5d5871d9fb2614d18$1@www.eclipse.org...
> Sorry, I can only access this newsgroup through web...
> I mean that my ContainerFigure will calculate its size automatically and
> paint itself correctly when I add a new child to it.(The layout of my
> ContainerFigure is FlowLayout)
> But if I call "FlowLayout.setHorizontal(false)", the ContainerFigure will
> not paint itself correctly when I add a new child to it, in another word,
> my ContainerFigure's size will remains the same as before.I have to drag
> the bounds so that I can see the newly added item.
>
>
Re: FlowLayout doesn't calculate its size automatically? [message #188905 is a reply to message #188834] Sat, 23 July 2005 02:57 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: zhlmmc.hotmail.com

The layout of container's parent is FreeFormLayout...
So, it cann't automatically resize the container -,-
Unfortunately, I can only use FreeFormLayout for the container's parent.
Is it possible to make the container resizeable automatically?
What should I do?

Thanks.
Re: FlowLayout doesn't calculate its size automatically? [message #189042 is a reply to message #188905] Mon, 25 July 2005 15:38 Go to previous message
Eclipse UserFriend
Originally posted by: none.unknown.com

Yes. Use -1 as the width or height constraint for whatever dimension needs
to be resized automatically. In the logic example, if you set the flow
container's height to be -1, you'll see this happen.


"zhlmmc" <zhlmmc@hotmail.com> wrote in message
news:e25a4df9d66e324463d5525c84eb3074$1@www.eclipse.org...
>
> The layout of container's parent is FreeFormLayout...
> So, it cann't automatically resize the container -,-
> Unfortunately, I can only use FreeFormLayout for the container's parent.
> Is it possible to make the container resizeable automatically?
> What should I do?
>
> Thanks.
>
Previous Topic:Custom Actions in editors contextmenu?
Next Topic:Deleting a connection
Goto Forum:
  


Current Time: Tue Dec 03 06:29:44 GMT 2024

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

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

Back to the top