diff options
| author | Laurenz <laurmaedje@gmail.com> | 2022-01-07 13:11:46 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2022-01-07 13:26:51 +0100 |
| commit | 0b624390906e911bde325b487b2710b67c8205c8 (patch) | |
| tree | 43fbfc28082add3dcb1398ae0b6f71202fe51efe /src/layout | |
| parent | af014cfe5eea4233d8034c79c1a5f898c972396c (diff) | |
Scoped styles
Diffstat (limited to 'src/layout')
| -rw-r--r-- | src/layout/mod.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/layout/mod.rs b/src/layout/mod.rs index a00687eb..6935afc2 100644 --- a/src/layout/mod.rs +++ b/src/layout/mod.rs @@ -197,6 +197,8 @@ impl Layout for PackedNode { regions: &Regions, styles: StyleChain, ) -> Vec<Constrained<Rc<Frame>>> { + let styles = styles.barred(self.node.as_any().type_id()); + #[cfg(not(feature = "layout-cache"))] return self.node.layout(ctx, regions, styles); |
