docs: clarify layout example dependency and occurrence contracts
This commit is contained in:
@@ -18,6 +18,7 @@ class ArrangedColumn: Column {
|
||||
// source_layout 的安排阶段调用覆盖方法,基类利用本轮孩子测量值生成包含全部稳定 slot 的临时结果。
|
||||
result = Column.arrange(self, mount, geometry)
|
||||
// 只改返回的第一子槽 Bounds.width,宿主会验证槽完整性并据显式分配反推下一轮精确测量约束。
|
||||
// at(0) 只用于挑选返回列表中的首项;该 Bounds 原有的稳定 slot 保持不变,宿主按 slot 而非列表下标关联孩子。
|
||||
result.children.at(0).width = self.policy.width
|
||||
return result
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user