Cull widget draw calls in column and row

This commit is contained in:
Héctor Ramón Jiménez 2024-10-02 15:45:21 +02:00
parent 509a0a574a
commit d40aa6400d
No known key found for this signature in database
GPG key ID: 7CC46565708259A7
3 changed files with 16 additions and 26 deletions

View file

@ -334,10 +334,6 @@ pub fn draw<Renderer>(
{
let bounds = layout.bounds();
if !bounds.intersects(viewport) {
return;
}
let x = match paragraph.horizontal_alignment() {
alignment::Horizontal::Left => bounds.x,
alignment::Horizontal::Center => bounds.center_x(),