KanzakiKino / w4d

Widgets Library for dlang.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Optimize layout.

KanzakiKino opened this issue · comments

Layout is too slow, because now it calculates all styles if it's not changed.
So it's necessary just to move widgets using shiftChildren, if parent size is not changed.

And resizing elements is too, add handleResize and handleMove methods to improve.

ToDo

  • Add handleResize/handleMove to Layoutable interface.
  • Implement handleResize/handleMove methods to Widget.
  • Change Layout to just moving, if parent size isn't changed.

handleResize/handleMove methods made layout slow. So it has better resize elements everytime after finished each layout.

And checking if the owner is dirty can be optimized more efficiency.