From 76b4f929df08b39e759e1b8c5b2654f2db6faa63 Mon Sep 17 00:00:00 2001 From: Marc Coll Carrillo Date: Sun, 31 Aug 2014 17:54:40 +0200 Subject: [PATCH] Reset the scroll offset when clearing a dynamic ribbon widget --- src/guiengine/widgets/dynamic_ribbon_widget.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/guiengine/widgets/dynamic_ribbon_widget.cpp b/src/guiengine/widgets/dynamic_ribbon_widget.cpp index 0a3040068..c1d2c12d2 100644 --- a/src/guiengine/widgets/dynamic_ribbon_widget.cpp +++ b/src/guiengine/widgets/dynamic_ribbon_widget.cpp @@ -491,6 +491,7 @@ void DynamicRibbonWidget::clearItems() { m_items.clear(); m_animated_contents = false; + m_scroll_offset = 0; } // ----------------------------------------------------------------------------- void DynamicRibbonWidget::elementRemoved()