From 8062ebaf3a54d4f4bc12433637788cca6f2fa0ff Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Sun, 13 Nov 2022 12:25:46 +0100 Subject: [PATCH] GridComponent now sets its default position and size if this is not defined by the theme configuration. --- es-core/src/components/primary/GridComponent.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/es-core/src/components/primary/GridComponent.h b/es-core/src/components/primary/GridComponent.h index 972188f53..134b0f460 100644 --- a/es-core/src/components/primary/GridComponent.h +++ b/es-core/src/components/primary/GridComponent.h @@ -385,7 +385,13 @@ void GridComponent::applyTheme(const std::shared_ptr& theme, const std::string& element, unsigned int properties) { + mSize.x = Renderer::getScreenWidth(); + mSize.y = Renderer::getScreenHeight() * 0.8; + GuiComponent::mPosition.x = 0.0f; + GuiComponent::mPosition.y = Renderer::getScreenHeight() * 0.1; + GuiComponent::applyTheme(theme, view, element, properties); + using namespace ThemeFlags; const ThemeData::ThemeElement* elem {theme->getElement(view, element, "grid")};