summaryrefslogtreecommitdiff
path: root/src/tabbar.cpp
diff options
context:
space:
mode:
authorYoann Laissus <yoann.laissus@gmail.com>2012-08-05 16:48:38 +0200
committerAndrea Diamantini <adjam7@gmail.com>2012-08-14 17:47:41 +0200
commitf7418e262b81dfcdad8d690b2ff7df0d4ffd9df5 (patch)
tree0e0bd6f904f9b2f929837a0cc2820abf9f173e24 /src/tabbar.cpp
parent* Split updateTabBar() into two separate methods (diff)
downloadrekonq-f7418e262b81dfcdad8d690b2ff7df0d4ffd9df5.tar.xz
Fix the tab preview ratio. We want the web page ratio, not the window ratio.
Diffstat (limited to 'src/tabbar.cpp')
-rw-r--r--src/tabbar.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/tabbar.cpp b/src/tabbar.cpp
index 2f0803f8..e3b44d53 100644
--- a/src/tabbar.cpp
+++ b/src/tabbar.cpp
@@ -195,10 +195,13 @@ void TabBar::showTabPreview()
if (indexedTab->isPageLoading())
return;
- int w = (mv->sizeHint().width() / baseWidthDivisor);
+ // Make sure the hovered webtab match the current size
+ // Only the active one is updated by window resize events
+ indexedTab->resize(currentTab->size());
m_previewPopup = new TabPreviewPopup(indexedTab , this);
+ int w = (mv->sizeHint().width() / baseWidthDivisor);
int tabBarWidth = mv->size().width();
int leftIndex = tabRect(m_currentTabPreviewIndex).x() + (tabRect(m_currentTabPreviewIndex).width() - w) / 2;