Skip to content

Commit

Permalink
added grid function to align with flex function (#291)
Browse files Browse the repository at this point in the history
  • Loading branch information
dominikwilkowski authored Jan 25, 2024
1 parent 7adf88e commit 7b86afe
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/style.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1583,6 +1583,10 @@ impl Style {
self.display(taffy::style::Display::Flex)
}

pub fn grid(self) -> Self {
self.display(taffy::style::Display::Grid)
}

pub fn flex_row(self) -> Self {
self.flex_direction(taffy::style::FlexDirection::Row)
}
Expand Down

0 comments on commit 7b86afe

Please sign in to comment.