-
Beta Was this translation helpful? Give feedback.
Answered by
nicoburns
Nov 9, 2023
Replies: 1 comment 2 replies
-
I did notice Taffy does have Display::Block in source and should be enabled by default or with the block_layout feature. Setup a new project from scratch with just taffy installed (version 0.3.18), but when trying to use the "block_layout" feature, I'm getting an error from cargo saying it doesn't exist. Cargo.toml: [package]
name = "throwaways"
version = "0.1.0"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
taffy = { version = "0.3.18", features = ["block_layout"] } Error:
Could also just be a skill issue and would appreciate some help. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@camcd93
Block
layout was only added in a more recent version of Taffy than the one you are using. And there hasn't been a stable crates.io release since then. If you want this kind of layout your options are:main
branchflex_direction: FlexDirection::Column
andjustify_content: JustifyContent::Start
set, which will give you a similar vertical layout.