layout/tile: Use animated tile size for open anim geo

This is the right value to use as the texture will also match the animated
size.
This commit is contained in:
Ivan Molodetskikh
2025-03-01 09:45:57 +03:00
parent 3b8ce12316
commit f30413a744
+7 -1
View File
@@ -1036,7 +1036,13 @@ impl<W: LayoutElement> Tile<W> {
let elements =
self.render_inner(renderer, Point::from((0., 0.)), scale, focus_ring, target);
let elements = elements.collect::<Vec<TileRenderElement<_>>>();
match open.render(renderer, &elements, self.tile_size(), location, scale) {
match open.render(
renderer,
&elements,
self.animated_tile_size(),
location,
scale,
) {
Ok(elem) => {
self.window()
.set_offscreen_element_id(Some(elem.id().clone()));