File tree Expand file tree Collapse file tree 2 files changed +4
-27
lines changed Expand file tree Collapse file tree 2 files changed +4
-27
lines changed Original file line number Diff line number Diff line change 22
33## Unreleased
44
5+ ### Removed
6+
7+ - ` layout_flexbox() ` has been removed from the prelude. Use ` FlexboxAlgorithm::perform_layout() ` instead.
8+
59### Changes
610
711- The Flexbox algorithm has now been moved behind the ` flexbox ` feature. The ` flexbox ` feature is enabled by default.
Original file line number Diff line number Diff line change 11//! Commonly used types
22
3- #[ cfg( feature = "flexbox" ) ]
4- use crate :: {
5- compute:: LayoutAlgorithm ,
6- layout:: { SizeAndBaselines , SizingMode } ,
7- } ;
8-
9- /// Apply the flexbox algorithm and recursively layout the specified node
10- #[ cfg( feature = "flexbox" ) ]
11- #[ inline( always) ]
12- pub fn layout_flexbox (
13- tree : & mut impl LayoutTree ,
14- node : Node ,
15- known_dimensions : Size < Option < f32 > > ,
16- parent_size : Size < Option < f32 > > ,
17- available_space : Size < AvailableSpace > ,
18- sizing_mode : SizingMode ,
19- ) -> SizeAndBaselines {
20- crate :: compute:: flexbox:: FlexboxAlgorithm :: perform_layout (
21- tree,
22- node,
23- known_dimensions,
24- parent_size,
25- available_space,
26- sizing_mode,
27- )
28- }
29-
303pub use crate :: {
314 geometry:: { Line , Rect , Size } ,
325 layout:: Layout ,
You can’t perform that action at this time.
0 commit comments