mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-30 08:51:04 +02:00
CImageInfo: fix y position of infotext
Minitv was not considered.
When font size very small, infotext could be overlapping
with minitv window. This should fix this.
Origin commit data
------------------
Branch: ni/coolstream
Commit: 2727e3f7f0
Author: Thilo Graf <dbt@novatux.de>
Date: 2017-02-13 (Mon, 13 Feb 2017)
------------------
This commit was generated by Migit
This commit is contained in:
@@ -414,6 +414,7 @@ void CImageInfo::InitInfoText(const std::string& text)
|
||||
//add a caption for info contents
|
||||
Font * caption_font = g_Font[SNeutrinoSettings::FONT_TYPE_MENU];
|
||||
int caption_height = caption_font->getHeight();
|
||||
y_tmp = max(y_tmp, cc_tv->getYPos()+cc_tv->getHeight());
|
||||
if (cc_sub_caption == NULL)
|
||||
cc_sub_caption = new CComponentsLabel(cc_info->getXPos(), y_tmp, cc_info->getWidth(), caption_height,
|
||||
g_Locale->getText(LOCALE_IMAGEINFO_LICENSE), CTextBox::AUTO_WIDTH, item_font);
|
||||
|
Reference in New Issue
Block a user