From 2a29fa67eb202fc85e3e44973383cbe8068d586e Mon Sep 17 00:00:00 2001 From: vanhofen Date: Tue, 28 Nov 2017 14:41:42 +0100 Subject: [PATCH] infoviewer_bb: take footer height from CComponentsFooter ... to get this footer in sync with the footers of other gui elements Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/2e4b0023ab017e13536cbbc3cde1c16172879f86 Author: vanhofen Date: 2017-11-28 (Tue, 28 Nov 2017) Origin message was: ------------------ - infoviewer_bb: take footer height from CComponentsFooter ... to get this footer in sync with the footers of other gui elements ------------------ This commit was generated by Migit --- src/gui/infoviewer_bb.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/gui/infoviewer_bb.cpp b/src/gui/infoviewer_bb.cpp index a958c5413..d410bb06f 100644 --- a/src/gui/infoviewer_bb.cpp +++ b/src/gui/infoviewer_bb.cpp @@ -126,7 +126,10 @@ void CInfoViewerBB::Init() bbButtonInfo[i].x = -1; } - InfoHeightY_Info = g_Font[SNeutrinoSettings::FONT_TYPE_MENU_FOOT]->getHeight() + 5; + // not really a CComponentsFooter but let's take its height + CComponentsFooter footer; + InfoHeightY_Info = footer.getHeight(); + initBBOffset(); changePB();