File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -249,11 +249,20 @@ pub struct Style {
249
249
pub flex_shrink : f32 ,
250
250
/// The initial size of the item
251
251
pub flex_basis : Val ,
252
- /// The size of the flexbox
252
+ /// The ideal size of the flexbox
253
+ ///
254
+ /// `size.width` is used when it is within the bounds defined by `min_size.width` and `max_size.width`.
255
+ /// `size.height` is used when it is within the bounds defined by `min_size.height` and `max_size.height`.
253
256
pub size : Size ,
254
257
/// The minimum size of the flexbox
258
+ ///
259
+ /// `min_size.width` is used if it is greater than either `size.width` or `max_size.width`, or both.
260
+ /// `min_size.height` is used if it is greater than either `size.height` or `max_size.height`, or both.
255
261
pub min_size : Size ,
256
262
/// The maximum size of the flexbox
263
+ ///
264
+ /// `max_size.width` is used if it is within the bounds defined by `min_size.width` and `size.width`.
265
+ /// `max_size.height` is used if it is within the bounds defined by `min_size.height` and `size.height.
257
266
pub max_size : Size ,
258
267
/// The aspect ratio of the flexbox
259
268
pub aspect_ratio : Option < f32 > ,
You can’t perform that action at this time.
0 commit comments