From 8763adedb1e5d8c2d3871b6ccb53047b4a9c04cf Mon Sep 17 00:00:00 2001 From: Koerty Date: Wed, 6 Jun 2018 23:26:21 +0200 Subject: [PATCH] Fix grid padding being 2 times smaller than it should be --- es-core/src/components/GridTileComponent.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/es-core/src/components/GridTileComponent.cpp b/es-core/src/components/GridTileComponent.cpp index 6fcc7f776..69cd1360e 100644 --- a/es-core/src/components/GridTileComponent.cpp +++ b/es-core/src/components/GridTileComponent.cpp @@ -175,7 +175,7 @@ void GridTileComponent::resize() { const GridTileProperties& currentProperties = getCurrentProperties(); - mImage->setMaxSize(currentProperties.mSize - currentProperties.mPadding); + mImage->setMaxSize(currentProperties.mSize - currentProperties.mPadding * 2); mBackground.setCornerSize(currentProperties.mBackgroundCornerSize); mBackground.fitTo(currentProperties.mSize - mBackground.getCornerSize() * 2); }