Re: Dynamic position/size change and built-in layouts

2014-04-08 Thread Pedro Duque Vieira
Hi again,

I've created the issue in Jira:
https://javafx-jira.kenai.com/browse/RT-36582

Will send the small test app to the person that will be assigned this issue.

Thanks,


On Thu, Apr 3, 2014 at 10:57 PM, Pedro Duque Vieira 
pedro.duquevie...@gmail.com wrote:

 In the situation I described nothing happens after c1 changes height. But
 strangely if some other child changes, for instance c3 changing its height,
 than the children c3 and c2 will re-position correctly, taking into account
 the height of c1.
 So the change is being delayed, even if I call requestLayout().. It's
 being delayed for an undefined amount of time so it should have nothing to
 due with the pulse.




 On Thu, Apr 3, 2014 at 10:07 PM, Pedro Duque Vieira 
 pedro.duquevie...@gmail.com wrote:

 Setting VBox preferred height to: USE_COMPUTED_SIZE, doesn't work.

 Regards,


 On Thu, Apr 3, 2014 at 6:14 PM, Pedro Duque Vieira 
 pedro.duquevie...@gmail.com wrote:

 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.po...@oracle.comwrote:

 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.duquevie...@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




 --
 Pedro Duque Vieira




 --
 Pedro Duque Vieira




-- 
Pedro Duque Vieira


Re: Dynamic position/size change and built-in layouts

2014-04-07 Thread Martin Sladecek
Can you provide some small sample where this can be reproduce and 
preferably submit a bug to JIRA?


Thanks,
-Martin

On 3.4.2014 23:57, Pedro Duque Vieira wrote:

In the situation I described nothing happens after c1 changes height. But
strangely if some other child changes, for instance c3 changing its height,
than the children c3 and c2 will re-position correctly, taking into account
the height of c1.
So the change is being delayed, even if I call requestLayout().. It's being
delayed for an undefined amount of time so it should have nothing to due
with the pulse.




On Thu, Apr 3, 2014 at 10:07 PM, Pedro Duque Vieira 
pedro.duquevie...@gmail.com wrote:


Setting VBox preferred height to: USE_COMPUTED_SIZE, doesn't work.

Regards,


On Thu, Apr 3, 2014 at 6:14 PM, Pedro Duque Vieira 
pedro.duquevie...@gmail.com wrote:


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.po...@oracle.comwrote:


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.duquevie...@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




--
Pedro Duque Vieira








Re: Dynamic position/size change and built-in layouts

2014-04-03 Thread Moises Chicharro
If your VBox is elastic - i.e, it's Pref Width/Height is set to 
USE_COMPUTED_SIZE then it will act exactly as you describe (unless limited by 
it's parent). You can prototype and test layout like this in Scene Builder very 
quickly.
Regards,
Mo

On 3 Apr 2014, at 15:01, Pedro Duque Vieira pedro.duquevie...@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



Re: Dynamic position/size change and built-in layouts

2014-04-03 Thread Jasper Potts
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.duquevie...@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


Re: Dynamic position/size change and built-in layouts

2014-04-03 Thread Pedro Duque Vieira
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.po...@oracle.comwrote:

 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.duquevie...@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


Re: Dynamic position/size change and built-in layouts

2014-04-03 Thread Martin Sladecek

And are you changing the height of the child or it's preferred height?
The height of a managed node is set by the VBox, so you shouldn't 
manipulate with it since if the VBox layout gets dirty, it will reset 
the heigh according to the preferred height.


-Martin


On 3.4.2014 19:14, Pedro Duque Vieira wrote:

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.po...@oracle.comwrote:


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.duquevie...@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







Re: Dynamic position/size change and built-in layouts

2014-04-03 Thread Pedro Duque Vieira
Setting VBox preferred height to: USE_COMPUTED_SIZE, doesn't work.

Regards,


On Thu, Apr 3, 2014 at 6:14 PM, Pedro Duque Vieira 
pedro.duquevie...@gmail.com wrote:

 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.po...@oracle.comwrote:

 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.duquevie...@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




-- 
Pedro Duque Vieira


Re: Dynamic position/size change and built-in layouts

2014-04-03 Thread Pedro Duque Vieira
In the situation I described nothing happens after c1 changes height. But
strangely if some other child changes, for instance c3 changing its height,
than the children c3 and c2 will re-position correctly, taking into account
the height of c1.
So the change is being delayed, even if I call requestLayout().. It's being
delayed for an undefined amount of time so it should have nothing to due
with the pulse.




On Thu, Apr 3, 2014 at 10:07 PM, Pedro Duque Vieira 
pedro.duquevie...@gmail.com wrote:

 Setting VBox preferred height to: USE_COMPUTED_SIZE, doesn't work.

 Regards,


 On Thu, Apr 3, 2014 at 6:14 PM, Pedro Duque Vieira 
 pedro.duquevie...@gmail.com wrote:

 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.po...@oracle.comwrote:

 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.duquevie...@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




 --
 Pedro Duque Vieira




-- 
Pedro Duque Vieira