diff --git a/CHANGELOG.md b/CHANGELOG.md index 9e987bc10..3f71ed35f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -26,12 +26,14 @@ Please only add new entries below the [Unreleased](#unreleased---releasedate) he ## [@Unreleased] - @ReleaseDate ### Features + - **core**: Add the ability to force redraw a frame. (#697 @zihadmahiuddin) - **core**: record the visual rect after layout.(#pr @wjian23) ### Fixed - **core**: Fix window staying empty after switching workspace (e.g. in i3wm) by doing a force redraw. (#697 @zihadmahiuddin) +- **core**: remove unused pop_providers during layout.(#pr @wjian23) ## [0.4.0-alpha.26] - 2025-02-05 diff --git a/core/src/context/layout_ctx.rs b/core/src/context/layout_ctx.rs index d8e53c47c..ef7737582 100644 --- a/core/src/context/layout_ctx.rs +++ b/core/src/context/layout_ctx.rs @@ -68,7 +68,7 @@ impl<'a> LayoutCtx<'a> { /// Perform layout of the `child` and return its size. pub fn perform_child_layout(&mut self, child: WidgetId, clamp: BoxClamp) -> Size { - let size = self + self .get_calculated_size(child, clamp) .unwrap_or_else(|| { // The position needs to be reset, as some parent render widgets may not have @@ -80,10 +80,7 @@ impl<'a> LayoutCtx<'a> { self.id = id; size - }); - self.provider_ctx.pop_providers_for(self.id); - - size + }) } /// Adjust the position of the widget where it should be placed relative to