diff options
Diffstat (limited to '')
| -rw-r--r-- | graphics/src/widget/scrollable.rs | 10 | 
1 files changed, 9 insertions, 1 deletions
| diff --git a/graphics/src/widget/scrollable.rs b/graphics/src/widget/scrollable.rs index 57065ba2..2220e4b8 100644 --- a/graphics/src/widget/scrollable.rs +++ b/graphics/src/widget/scrollable.rs @@ -134,8 +134,16 @@ where                      Primitive::None                  }; +                let scroll = Primitive::Clip { +                    bounds, +                    offset: Vector::new(0, 0), +                    content: Box::new(Primitive::Group { +                        primitives: vec![scrollbar, scroller], +                    }), +                }; +                  Primitive::Group { -                    primitives: vec![clip, scrollbar, scroller], +                    primitives: vec![clip, scroll],                  }              } else {                  content | 
