diff options
author | crupest <crupest@outlook.com> | 2020-06-28 21:25:09 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2020-06-28 21:25:09 +0800 |
commit | b3c0c076e5a1b1e7d76fa8d32af0bcbb2c1cd4cf (patch) | |
tree | df90c6ae501508931fbd46ebc6340c90391e1ed5 /include/cru/ui/render/FlexLayoutRenderObject.hpp | |
parent | 698242c10cbef4ceaade848fa6aedac71baaf1f2 (diff) | |
download | cru-b3c0c076e5a1b1e7d76fa8d32af0bcbb2c1cd4cf.tar.gz cru-b3c0c076e5a1b1e7d76fa8d32af0bcbb2c1cd4cf.tar.bz2 cru-b3c0c076e5a1b1e7d76fa8d32af0bcbb2c1cd4cf.zip |
...
Diffstat (limited to 'include/cru/ui/render/FlexLayoutRenderObject.hpp')
-rw-r--r-- | include/cru/ui/render/FlexLayoutRenderObject.hpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/include/cru/ui/render/FlexLayoutRenderObject.hpp b/include/cru/ui/render/FlexLayoutRenderObject.hpp index 83d1e268..4b1e079d 100644 --- a/include/cru/ui/render/FlexLayoutRenderObject.hpp +++ b/include/cru/ui/render/FlexLayoutRenderObject.hpp @@ -3,8 +3,9 @@ namespace cru::ui::render { // Measure Logic (v0.1): -// 1. Layout all children with unspecified(infinate) max main axis length. If -// max cross axis length of parent is specified, then it is passed to children. +// Cross axis measure logic is the same as stack layout. +// +// 1. Layout all children with unspecified(infinate) max main axis length. // // 2. Add up main axis length of children to get total main length. // @@ -72,10 +73,6 @@ namespace cru::ui::render { // (if specified), then coerce the length to the min value but not report error // and just fill the rest space with blank. // -// 5. Result cross axis length is the max cross axis length of all children. If -// min cross axis length is specified and result length is smaller than it, then -// result length is coerced to it. -// class FlexLayoutRenderObject : public LayoutRenderObject<FlexChildLayoutData> { public: FlexLayoutRenderObject() = default; |