Fixed position of checkbox texture when borders were set

0.8
Bruno Van de Velde 2017-07-28 18:58:28 +02:00
parent 0c69ca9edd
commit 704fcb2c80
1 changed files with 2 additions and 2 deletions

View File

@ -210,9 +210,9 @@ namespace tgui
checkedSprite = &m_spriteChecked;
// The image may need to be shifted when the check leaves the box
if (getSize().y != checkedSprite->getSize().y)
if (getInnerSize().y != checkedSprite->getSize().y)
{
float diff = getSize().y - checkedSprite->getSize().y;
float diff = getInnerSize().y - checkedSprite->getSize().y;
states.transform.translate({0, diff});
checkedSprite->draw(target, states);