Fix dimensions of image when expand is enabled

This commit is contained in:
Héctor Ramón Jiménez 2025-08-17 04:47:23 +02:00
parent 4a836d5420
commit d3a0d0b512
No known key found for this signature in database
GPG key ID: 7CC46565708259A7

View file

@ -190,7 +190,7 @@ where
// The size to be available to the widget prior to `Shrink`ing // The size to be available to the widget prior to `Shrink`ing
let bounds = if expand { let bounds = if expand {
limits.max() limits.width(width).height(height).max()
} else { } else {
limits.resolve(width, height, rotated_size) limits.resolve(width, height, rotated_size)
}; };