Narasimha-sc and GitHub
c125836d85
android, desktop: fix empty area below wide images (beta.3 regression) ( #7223 )
...
Wide images size their preview box with a fixed width of DEFAULT_MAX_IMAGE_WIDTH
(500dp). #7125 switched the box from .aspectRatio() to a fixed .height() computed
from that nominal width; on screens narrower than 500dp, .width(500dp) is clamped
to the available width but the fixed height is not, so the top-aligned FillWidth
image is shorter than its box, leaving an empty strip below.
Compute the height from the width actually granted via a small Modifier.layout so
it tracks the clamped width, restoring the self-correcting behaviour .aspectRatio()
had. coerceAtMost(w) keeps the box within its nominal width (and bounds the
unbounded intrinsic-measurement pass), and coerceAtLeast(0) mirrors what
Modifier.width()'s SizeNode does for a negative w on a tiny window - so both
dimensions stay in range and the #7123 Constraints overflow crash cannot recur.
2026-07-18 14:58:25 +01:00
..
2026-03-05 09:13:24 +00:00
2026-03-06 15:24:55 +00:00
2026-03-16 10:46:35 +00:00
2026-03-21 18:06:23 +00:00
2026-04-02 22:32:00 +01:00
2026-03-29 21:38:41 +01:00
2026-04-02 15:36:36 +00:00
2026-04-02 15:36:36 +00:00
2026-04-03 21:24:08 +01:00
2026-04-27 17:33:52 +01:00
2026-04-27 17:33:52 +01:00
2026-04-17 08:27:41 +00:00
2026-04-16 23:48:19 +01:00
2026-04-17 21:10:00 +01:00
2026-04-19 11:26:54 +01:00
2026-04-23 13:30:26 +01:00
2026-05-22 20:52:01 +00:00
2026-05-08 07:19:16 +00:00
2026-05-02 11:31:03 +01:00
2026-05-06 08:54:36 +01:00
2026-05-08 11:10:14 +01:00
2026-05-08 12:18:45 +01:00
2026-05-12 12:32:01 +01:00
2026-05-12 12:32:01 +01:00
2026-05-08 13:55:58 +01:00
2026-05-08 12:15:52 +01:00
2026-05-22 20:52:01 +00:00
2026-05-22 20:52:01 +00:00
2026-05-12 12:36:23 +00:00
2026-05-12 12:36:23 +00:00
2026-05-13 08:58:42 +01:00
2026-05-13 08:58:42 +01:00
2026-05-12 16:48:25 +01:00
2026-05-13 15:24:52 +01:00
2026-05-12 10:12:39 +01:00
2026-05-12 10:11:26 +01:00
2026-05-13 16:45:39 +01:00
2026-05-18 09:15:20 +01:00
2026-05-13 16:43:06 +01:00
2026-05-16 10:22:57 +01:00
2026-05-18 09:06:25 +00:00
2026-05-14 15:33:55 +01:00
2026-05-25 16:10:55 +01:00
2026-05-25 16:08:48 +01:00
2026-05-30 09:01:16 +01:00
2026-06-07 23:46:59 +01:00
2026-05-25 10:43:36 +00:00
2026-06-01 21:33:35 +01:00
2026-05-25 19:34:32 +01:00
2026-07-06 14:45:45 +01:00
2026-06-08 00:02:54 +01:00
2026-06-22 10:15:41 +00:00
2026-05-30 07:33:10 +01:00
2026-06-22 10:15:41 +00:00
2026-06-15 22:25:08 +01:00
2026-07-10 19:55:10 +00:00
2026-06-17 19:22:34 +01:00
2026-06-17 19:23:41 +01:00
2026-06-17 19:21:55 +01:00
2026-06-17 19:18:32 +01:00
2026-06-17 19:27:55 +01:00
2026-06-18 08:44:58 +01:00
2026-06-20 14:50:46 +01:00
2026-06-20 22:49:29 +01:00
2026-06-19 23:36:28 +01:00
2026-06-26 22:12:39 +01:00
2026-07-03 19:32:29 +00:00
2026-07-06 14:56:08 +01:00
2026-07-02 10:48:51 +01:00
2026-07-03 12:51:52 +01:00
2026-07-03 12:51:52 +01:00
2026-06-29 15:43:31 +01:00
2026-07-10 19:55:10 +00:00
2026-07-18 14:58:25 +01:00
2026-07-10 19:55:10 +00:00
2026-07-12 09:41:05 +01:00
2026-07-15 17:54:21 +01:00
2026-07-17 15:41:54 +01:00
2026-07-16 13:49:10 +01:00
2026-02-07 13:29:41 +00:00
2026-02-12 07:11:59 +00:00
2026-03-16 10:46:35 +00:00
2026-02-12 07:11:59 +00:00
2026-06-08 12:13:06 +01:00
2026-06-08 12:13:06 +01:00
2026-02-12 07:11:59 +00:00
2026-02-07 13:29:41 +00:00
2026-02-12 07:11:59 +00:00
2026-02-12 07:11:59 +00:00
2026-02-12 07:11:59 +00:00
2026-03-09 16:22:39 +00:00
2026-03-09 16:22:39 +00:00