diff options
| author | Martin Haug <mhaug@live.de> | 2022-06-08 18:43:00 +0200 |
|---|---|---|
| committer | Martin Haug <mhaug@live.de> | 2022-06-08 19:26:20 +0200 |
| commit | 72d3f3fffabe6872eb7839585bea925b89aac6a4 (patch) | |
| tree | 2c55fc7bceb85d7ce94b09536ee02f5fedcd5fff /src/library/graphics | |
| parent | 9dca4c2f7833055edd3c1682e98dcc3f86b7e31b (diff) | |
CR: Whoever said orange is the new pink was seriously disturbed.
Diffstat (limited to 'src/library/graphics')
| -rw-r--r-- | src/library/graphics/shape.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/library/graphics/shape.rs b/src/library/graphics/shape.rs index e972a3d5..82eb2d9d 100644 --- a/src/library/graphics/shape.rs +++ b/src/library/graphics/shape.rs @@ -94,9 +94,7 @@ impl<const S: ShapeKind> Layout for ShapeNode<S> { frames = child.layout(ctx, &pod, styles)?; for frame in frames.iter_mut() { - if frame.role().map_or(true, Role::is_weak) { - Arc::make_mut(frame).apply_role(Role::GenericBlock); - } + Arc::make_mut(frame).apply_role(Role::GenericBlock); } // Relayout with full expansion into square region to make sure |
