Trim text measurements only before layout

This commit is contained in:
Héctor Ramón Jiménez 2023-06-29 18:23:11 +02:00
parent cdce03cf7f
commit d666e739cd
No known key found for this signature in database
GPG key ID: 140CC052C94F138E
4 changed files with 30 additions and 28 deletions

View file

@ -93,6 +93,8 @@ impl<B: Backend, T> iced_core::Renderer for Renderer<B, T> {
element: &Element<'_, Message, Self>,
limits: &layout::Limits,
) -> layout::Node {
self.backend.trim_measurements();
element.as_widget().layout(self, limits)
}