File tree Expand file tree Collapse file tree 1 file changed +11
-5
lines changed Expand file tree Collapse file tree 1 file changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -453,11 +453,17 @@ class _RenderCSSBox extends RenderBox
453
453
: containingBlockSize.width -
454
454
(this .margins.left? .value ?? 0 ) -
455
455
(this .margins.right? .value ?? 0 ),
456
- maxHeight: containingBlockSize.height -
457
- (this .margins.top? .value ?? 0 ) -
458
- (this .margins.bottom? .value ?? 0 ),
459
- minWidth: 0 ,
460
- minHeight: 0 ,
456
+ maxHeight: (this .height.unit != Unit .auto)
457
+ ? this .height.value
458
+ : containingBlockSize.height -
459
+ (this .margins.top? .value ?? 0 ) -
460
+ (this .margins.bottom? .value ?? 0 ),
461
+ minWidth: (this .width.unit != Unit .auto)
462
+ ? this .width.value
463
+ : 0 ,
464
+ minHeight: (this .height.unit != Unit .auto)
465
+ ? this .height.value
466
+ : 0 ,
461
467
);
462
468
final Size childSize = layoutChild (child! , childConstraints);
463
469
You can’t perform that action at this time.
0 commit comments