Skip to content

Commit

Permalink
Merge pull request #680 from Sharktheone/layout/absolute-position
Browse files Browse the repository at this point in the history
fix inset property parser
  • Loading branch information
Sharktheone authored Nov 15, 2024
2 parents 2c53f97 + f4c960d commit b0ade23
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions crates/gosub_taffy/src/style/parse_properties.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,10 @@ pub fn parse_position(node: &mut impl Node) -> Position {

pub fn parse_inset(node: &mut impl Node) -> Rect<LengthPercentageAuto> {
Rect {
top: parse_len_auto(node, "inset-top"),
right: parse_len_auto(node, "inset-right"),
bottom: parse_len_auto(node, "inset-bottom"),
left: parse_len_auto(node, "inset-left"),
top: parse_len_auto(node, "top"),
right: parse_len_auto(node, "right"),
bottom: parse_len_auto(node, "bottom"),
left: parse_len_auto(node, "left"),
}
}

Expand Down

0 comments on commit b0ade23

Please sign in to comment.