From 2f7169f5f17545be8a724b52bf5d457d36b99124 Mon Sep 17 00:00:00 2001 From: Kaur Kuut Date: Tue, 26 May 2026 17:03:52 +0300 Subject: [PATCH] Replace `Portal::set_viewport_pos` layout request with a compose request. --- masonry/src/widgets/portal.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/masonry/src/widgets/portal.rs b/masonry/src/widgets/portal.rs index 04bdf32a9..065314527 100644 --- a/masonry/src/widgets/portal.rs +++ b/masonry/src/widgets/portal.rs @@ -372,7 +372,7 @@ impl Portal { let progress_y = this.widget.viewport_pos.y / (content_size - portal_size).height; Self::vertical_scrollbar_mut(this).widget.cursor_progress = progress_y; Self::vertical_scrollbar_mut(this).ctx.request_render(); - this.ctx.request_layout(); + this.ctx.request_compose(); } pos_changed }