docs: clarify layout example dependency and occurrence contracts
This commit is contained in:
@@ -21,6 +21,7 @@ class Actions {
|
||||
self.first.flexBasis = 100
|
||||
self.second.flexBasis = 100
|
||||
self.first.flex = 1
|
||||
// grow 不清除 shrink 曾设的 flexShrink=1;本例 basis 总量小于可用量,走增长分支,故不影响这里的预期。
|
||||
self.second.flex = 3
|
||||
}
|
||||
// 两项 basis=200 造成缺额,以 flexShrink*basis 分摊;首项 min=150 后第二项继续收缩到90。
|
||||
|
||||
Reference in New Issue
Block a user