ginebra2/mostvisitedsnippet.cpp
changeset 15 73c48011b8c7
parent 6 1c3b8676e58c
--- a/ginebra2/mostvisitedsnippet.cpp	Fri Sep 17 08:27:10 2010 +0300
+++ b/ginebra2/mostvisitedsnippet.cpp	Mon Oct 04 00:04:54 2010 +0300
@@ -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);
 }