Dynamic position/size change and built-in layouts
Pedro Duque Vieira
pedro.duquevieira at gmail.com
Thu Apr 3 17:14:45 UTC 2014
What I'm saying isn't exactly that.
What I'm saying is, for instance, if I change the height of the first child
of the VBox than the other children below would re-position themselves.
-VBox-
- -------
- - c1 -
- - -
- - -
- -------
-
- -------
- - c2 -
- -------
-
- -------
- - c3 -
- - -
- -------
First child (c1) gets smaller. Result - c2 and c3 move up automatically
(and the height of the VBox would also get smaller automatically):
-VBox-
- -------
- - c1 -
- -------
-
- -------
- - c2 -
- -------
-
- -------
- - c3 -
- - -
- -------
Thanks,
On Thu, Apr 3, 2014 at 5:29 PM, Jasper Potts <jasper.potts at oracle.com>wrote:
> VBox preferred size will grow if one of its children's preferred sizes
> grows. It will be down the the parent node of the VBox to react to that and
> make the VBox bigger if there is space available. The change is not
> immediate it will happen one pulse later.
>
> Jasper
>
> > On Apr 3, 2014, at 7:01 AM, Pedro Duque Vieira <
> pedro.duquevieira at gmail.com> wrote:
> >
> > Hi,
> >
> > Are built-in layouts prepared for dynamic changes of their children
> > position and/or size?
> > That is, for instance, if in a VBox I change the first child height the
> > other subsequent children would re-adjust their position.
> >
> > My experiments with VBox tell me that this will result in bugs, i.e. it
> > won't work.
> >
> > I think this is important for RIAs.
> >
> > Thanks, best regards,
> >
> > --
> > Pedro Duque Vieira
>
--
Pedro Duque Vieira
More information about the openjfx-dev
mailing list