mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-31 09:21:09 +02:00
CImageInfo: fix possible item height calculation
Calculation of height was ok on first paint, but on next time was broken.
Origin commit data
------------------
Branch: ni/coolstream
Commit: dae88708ee
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-10-03 (Mon, 03 Oct 2016)
------------------
This commit was generated by Migit
This commit is contained in:
@@ -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);
|
||||||
|
Reference in New Issue
Block a user