mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-27 07:23:09 +02:00
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:
@@ -359,8 +359,8 @@ void CImageInfo::InitInfos()
|
||||
item_font = item->getFont();
|
||||
//calculate initial height for info form
|
||||
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))
|
||||
item->setYPos(1);
|
||||
|
Reference in New Issue
Block a user