Preserve nested architecture during authoring and distinguish allocation summaries
This commit is contained in:
@@ -680,7 +680,7 @@ fn layout(p: &mut Project, diagram: Id) -> Result<(), ModelError> {
|
||||
width = width.max(size.width + 48.);
|
||||
height += size.height + 16.;
|
||||
}
|
||||
height += 8.;
|
||||
height += crate::projection::port_footer(p, d.nodes[&id].element) - 16.;
|
||||
} else {
|
||||
height = own.height;
|
||||
}
|
||||
@@ -779,7 +779,7 @@ fn layout(p: &mut Project, diagram: Id) -> Result<(), ModelError> {
|
||||
row_height = 0.;
|
||||
}
|
||||
place(*id, Position { x, y }, &children, &sizes, &mut positions);
|
||||
x += sizes[id].width + 60.;
|
||||
x += sizes[id].width + 240.;
|
||||
row_height = row_height.max(sizes[id].height);
|
||||
}
|
||||
let d = p.diagrams.get_mut(&diagram).unwrap();
|
||||
|
||||
Reference in New Issue
Block a user