From 2faeb50ef096c2c099578b4f778f6f8ba1aeece9 Mon Sep 17 00:00:00 2001 From: jrassa Date: Wed, 24 May 2017 21:26:07 -0400 Subject: [PATCH] fix default z-index values for metadata fields on detail view --- es-app/src/views/gamelist/DetailedGameListView.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/es-app/src/views/gamelist/DetailedGameListView.cpp b/es-app/src/views/gamelist/DetailedGameListView.cpp index 460f60827..b5e42758c 100644 --- a/es-app/src/views/gamelist/DetailedGameListView.cpp +++ b/es-app/src/views/gamelist/DetailedGameListView.cpp @@ -143,6 +143,7 @@ void DetailedGameListView::initMDLabels() components[i]->setFont(Font::get(FONT_SIZE_SMALL)); components[i]->setPosition(pos); + components[i]->setDefaultZIndex(40); } } @@ -171,6 +172,7 @@ void DetailedGameListView::initMDValues() const float heightDiff = (labels[i]->getSize().y() - values[i]->getSize().y()) / 2; values[i]->setPosition(labels[i]->getPosition() + Vector3f(labels[i]->getSize().x(), heightDiff, 0)); values[i]->setSize(colSize - labels[i]->getSize().x(), values[i]->getSize().y()); + values[i]->setDefaultZIndex(40); float testBot = values[i]->getPosition().y() + values[i]->getSize().y(); if(testBot > bottom)