Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
nicoburns committed Dec 29, 2022
1 parent ccaab3b commit f716b26
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/compute/flexbox.rs
Original file line number Diff line number Diff line change
Expand Up @@ -598,7 +598,13 @@ fn determine_flex_base_size(
let child_known_dimensions = {
let mut ckd = child.size;
if child.align_self == AlignSelf::Stretch && ckd.cross(constants.dir).is_none() {
ckd.set_cross(constants.dir, available_space.cross(constants.dir).into_option().maybe_sub(constants.margin.cross_axis_sum(constants.dir)));
ckd.set_cross(
constants.dir,
available_space
.cross(constants.dir)
.into_option()
.maybe_sub(constants.margin.cross_axis_sum(constants.dir)),
);
}
ckd
};
Expand Down

0 comments on commit f716b26

Please sign in to comment.