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 1bf343a commit 2c95146
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 2c95146

Please sign in to comment.