ginebra2/mostvisitedsnippet.cpp
changeset 12 afcd8e6d025b
parent 3 0954f5dd2cd0
child 16 3c88a81ff781
--- a/ginebra2/mostvisitedsnippet.cpp	Wed Sep 01 13:56:21 2010 -0400
+++ b/ginebra2/mostvisitedsnippet.cpp	Fri Sep 17 12:11:40 2010 -0400
@@ -72,7 +72,8 @@
     if (visibleSnippet)
         toolBarHeight = visibleSnippet->widget()->rect().height();
 
-    mostVisitedPagesWidget->resize(m_chrome->layout()->size().toSize());
+    //Resizing the widget to exclude the toolbar area so that it can handle events on toolbar as external event
+    mostVisitedPagesWidget->resize(QSize(m_chrome->layout()->size().width(),(m_chrome->layout()->size().height()- toolBarHeight - KSpaceToolbarMVP)));
     mostVisitedPagesWidget->updatePos(QPointF(0, 0), toolBarHeight);
 }