diff options
Diffstat (limited to '')
| -rw-r--r-- | core/src/widget/text.rs | 4 | 
1 files changed, 4 insertions, 0 deletions
| diff --git a/core/src/widget/text.rs b/core/src/widget/text.rs index 8b02f8c2..813b4be8 100644 --- a/core/src/widget/text.rs +++ b/core/src/widget/text.rs @@ -334,6 +334,10 @@ 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(), | 
