Closed KazDragon closed 8 years ago
Note: unlike the idea specified in the problem description, sorting the components at insertion time does not work: it requires that anything subclassing container performs this, which can't be guaranteed, and it also because the actual order of insertion is important for certain layouts (e.g. compass layout). Therefore, caching the Z-order seemed the best workaround.
Reviewed 1 of 1 files at r1. Review status: all files reviewed at latest revision, all discussions resolved.
Comments from the review on Reviewable.io
In this way, the Z-order is not re-computed unless components have been added or removed from the container since it was last drawn.
Closes #184