]> git.saurik.com Git - wxWidgets.git/blobdiff - src/ribbon/toolbar.cpp
Use client size determined by size-allocate when possible
[wxWidgets.git] / src / ribbon / toolbar.cpp
index 791da940eaddc7c6025f265cc7335a203ab61368..c64b60a99763137db3777262ee8e533e0fb551e9 100644 (file)
@@ -1149,6 +1149,8 @@ void wxRibbonToolBar::OnMouseUp(wxMouseEvent& WXUNUSED(evt))
             notification.SetEventObject(this);
             notification.SetBar(this);
             ProcessEvent(notification);
+
+            wxStaticCast(m_parent, wxRibbonPanel)->HideIfExpanded();
         }
 
         // Notice that m_active_tool could have been reset by the event handler