Fix tab height when we're docking a tab in the empty main Tabs widget

This commit is contained in:
David Capello 2015-04-20 14:04:38 -03:00
parent 47d2d8f902
commit c5cf848d37

View File

@ -860,9 +860,7 @@ void Tabs::stopDrag(DropTabResult result)
gfx::Rect Tabs::getTabBounds(Tab* tab)
{
gfx::Rect rect = getClientBounds();
gfx::Rect box(rect.x, rect.y, rect.w,
(m_list.empty() && animation() == ANI_NONE ? 0:
m_tabsHeight - m_tabsBottomHeight));
gfx::Rect box(rect.x, rect.y, rect.w, m_tabsHeight - m_tabsBottomHeight);
int startX = m_border*guiscale();
double t = animationTime();