mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-01-17 22:55:38 +00:00
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:
commit
e64277923a
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue