-
Notifications
You must be signed in to change notification settings - Fork 181
Clean-up Flexbox Layout algorithm implementation #39
Description
Problem
While browsing the implementation of the algorithm in this project, I noticed some things that probably should be cleaned up in the future.
Missing Implementation
There's a few steps that are not implemented yet and probably should be.
Out of spec Implementation
It seems like there's some steps in the implemented algorithm that are outside of the Flexbox specification.
Tight coupling
Maintainability of the Flexbox algorithm in the future is important, more so if more algorithms are implemented side-by-side next to it.
Thus, I think that the flexbox (and future) algorithm implementation(s) should be divided by steps.
While it requires more code to setup and do properly, it will allow to have simpler and shorter methods for each step of the layouting.
I hope I didn't miss anything, first time I am opening an issue here.