Skip to content

Commit

Permalink
Update BookNodePreview
Browse files Browse the repository at this point in the history
  • Loading branch information
muukii committed Jun 29, 2021
1 parent 840a36f commit 822716c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion StorybookKitTextureSupport/BookNodePreview.swift
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,13 @@ public struct BookNodePreview<Node: ASDisplayNode>: BookView {
VStackLayout {
body
.flexGrow(1)
.flexShrink(1)
.width(size.max.width)
}
}
} else {
return LayoutSpec {
VStackLayout { body }
VStackLayout { body.flexGrow(1).flexShrink(1) }
}
}
}
Expand Down

0 comments on commit 822716c

Please sign in to comment.