From d3a0d0b51292bf9943f5765f53eb3c783e0896e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A9ctor=20Ram=C3=B3n=20Jim=C3=A9nez?= Date: Sun, 17 Aug 2025 04:47:23 +0200 Subject: [PATCH] Fix dimensions of `image` when `expand` is enabled --- widget/src/image.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/widget/src/image.rs b/widget/src/image.rs index 20b7b70c..f8546b16 100644 --- a/widget/src/image.rs +++ b/widget/src/image.rs @@ -190,7 +190,7 @@ where // The size to be available to the widget prior to `Shrink`ing let bounds = if expand { - limits.max() + limits.width(width).height(height).max() } else { limits.resolve(width, height, rotated_size) };