Fix dimensions of image when expand is enabled
This commit is contained in:
parent
4a836d5420
commit
d3a0d0b512
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue