CImageInfo: fix possible item height calculation

Calculation of height was ok on first paint, but on next time was broken.
This commit is contained in:
2016-10-03 15:05:24 +02:00
parent 95735f6faf
commit dae88708ee

View File

@@ -359,8 +359,8 @@ void CImageInfo::InitInfos()
item_font = item->getFont(); item_font = item->getFont();
//calculate initial height for info form //calculate initial height for info form
item_height = item_font->getHeight(); item_height = item_font->getHeight();
cc_info->setHeight(v_info.size()*item_height);
} }
cc_info->setHeight(v_info.size()*item_height);
if ((i == 0) && (item->getYPos() == CC_APPEND)) if ((i == 0) && (item->getYPos() == CC_APPEND))
item->setYPos(1); item->setYPos(1);