Merge pull request #445 from Koerty/grid-fix-padding

Fix grid padding being 2 times smaller than it should be
This commit is contained in:
John Rassa 2018-06-06 14:47:14 -07:00 committed by GitHub
commit e64277923a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);
}