diff options
Diffstat (limited to 'include/cru/ui/render/ScrollRenderObject.hpp')
-rw-r--r-- | include/cru/ui/render/ScrollRenderObject.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/cru/ui/render/ScrollRenderObject.hpp b/include/cru/ui/render/ScrollRenderObject.hpp index 20b7278c..45fa3993 100644 --- a/include/cru/ui/render/ScrollRenderObject.hpp +++ b/include/cru/ui/render/ScrollRenderObject.hpp @@ -29,7 +29,7 @@ class ScrollRenderObject : public RenderObject { Point GetRawScrollOffset() const { return scroll_offset_; } // Rect lefttop relative to content rect. - void ScrollToContain(const Rect& rect); + void ScrollToContain(const Rect& rect, const Thickness& margin = Thickness{}); protected: void OnDrawCore(platform::graph::IPainter* painter) override; |