Cull widget draw calls in column and row
This commit is contained in:
parent
509a0a574a
commit
d40aa6400d
3 changed files with 16 additions and 26 deletions
|
|
@ -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(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue