From fad721c02c77ff97b4f395ecaf70e04db996ce86 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 Signed-off-by: Thilo Graf Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/3276b5358ab7ef7061e53bf5d8a3c49c939efc71 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 Signed-off-by: Thilo Graf --- 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 5e95ba823..9816157b5 100644 --- a/src/gui/infoviewer_bb.cpp +++ b/src/gui/infoviewer_bb.cpp @@ -109,7 +109,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();