tbee at tbee.org
Fri Oct 5 00:45:15 PDT 2012
Indeed, that is why I'm refactoring to remove that behavior. But for a 0.1 it's the easiest way to get a layout setup.
On 2012-10-05 09:39, Randahl Fink Isaksen wrote:
> Others may have more insight here, but I would guess that completely removing every node and building from scratch leads to poor performance in situations like when resizing a window.
> On Oct 5, 2012, at 9:34 , Tom Eugelink <tbee at tbee.org> wrote:
>> I've solved it. It takes a different approach: instead of extending layoutChildren, you should register to all kinds of properties and then do a relayout. For example: I've registered to the ScrollPane's viewportBounds and react to the changing width and height.
>> Also I'm now refactoring to not do a getChildren().clear on every relayout, but modify the sized.
>> Looking good.
More information about the openjfx-dev