summaryrefslogtreecommitdiff
path: root/library/src/layout/stack.rs
diff options
context:
space:
mode:
Diffstat (limited to 'library/src/layout/stack.rs')
-rw-r--r--library/src/layout/stack.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/library/src/layout/stack.rs b/library/src/layout/stack.rs
index 02129e1f..12a1c384 100644
--- a/library/src/layout/stack.rs
+++ b/library/src/layout/stack.rs
@@ -182,11 +182,11 @@ impl<'a> StackLayouter<'a> {
// Block-axis alignment of the `AlignNode` is respected
// by the stack node.
let align = block
- .downcast::<AlignNode>()
+ .to::<AlignNode>()
.and_then(|node| node.aligns.get(self.axis))
.map(|align| align.resolve(styles))
.unwrap_or_else(|| {
- if let Some(styled) = block.downcast::<StyledNode>() {
+ if let Some(styled) = block.to::<StyledNode>() {
let map = &styled.map;
if map.contains(ParNode::ALIGN) {
return StyleChain::with_root(map).get(ParNode::ALIGN);