Layout issues

Tom Eugelink tbee at
Wed Oct 10 09:11:41 PDT 2012

I have been attempting to get custom panes laid out by overriding layoutChilderen as well, and ended up with only partial correct layouts, never quite perfect. Then I switched to listening to the pane's width and height properties and then call a custom relayout() method. That works perfectly. Furthermore, by using binding to such properties combined with the calculation features, it now is a breeze to get stuff laid out.


On 2012-10-10 15:42, Scott Palmer wrote:
> Hi,
> I have a custom container extending Pane that implements layoutChildren.  I've noticed that this method is called continuously even though my scene is static.  It's like something is always in the list of "dirty" nodes and is forcing a re-layout.   I don't understand this.  I've googled but I can't find a decent tutorial for implementing custom containers or custom layouts.
> Part of the problem with my application is that nodes are not properly shrining when I remove content from within them,  they shrink a little, but not as much as they should.  I'm still debugging, but wonder if there is any insight into how the layout system works that I've missed somewhere?
> Thanks,
> Scott

More information about the openjfx-dev mailing list