Minor improvement to ribbon layot, don't reserve space for arrows when arrows are hidden

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8751 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
auria 2011-05-29 21:04:22 +00:00
parent 63d224dc62
commit d13f46fdd1

View File

@ -374,9 +374,9 @@ void DynamicRibbonWidget::buildInternalStructure()
ribbon->setListener(this);
ribbon->m_reserved_id = m_ids[n];
ribbon->m_x = m_x + m_arrows_w;
ribbon->m_x = m_x + (m_scrolling_enabled ? m_arrows_w : 0);
ribbon->m_y = m_y + (int)(n*row_height);
ribbon->m_w = m_w - m_arrows_w*2;
ribbon->m_w = m_w - (m_scrolling_enabled ? m_arrows_w*2 : 0);
ribbon->m_h = (int)(row_height);
ribbon->m_type = WTYPE_RIBBON;