undoing some auto align stuff

This commit is contained in:
2023-12-23 23:55:27 -06:00
parent 9822b1a57f
commit 242fa63e9c
11 changed files with 75 additions and 88 deletions

View File

@ -23,7 +23,7 @@ void UISubAlignableElement::updateAlignment(
this->subAlignedPosition.x = (
this->position.x +
(this->size.x / 2.0f) -
(this->getSelfWidth() / 2.0f)
(this->getContentWidth() / 2.0f)
);
break;
@ -31,7 +31,7 @@ void UISubAlignableElement::updateAlignment(
this->subAlignedPosition.x = (
this->position.x +
this->size.x -
this->getSelfWidth()
this->getContentWidth()
);
break;
@ -48,7 +48,7 @@ void UISubAlignableElement::updateAlignment(
this->subAlignedPosition.y = (
this->position.y +
(this->size.y / 2.0f) -
(this->getSelfHeight() / 2.0f)
(this->getContentHeight() / 2.0f)
);
break;
@ -56,7 +56,7 @@ void UISubAlignableElement::updateAlignment(
this->subAlignedPosition.y = (
this->position.y +
this->size.y -
this->getSelfHeight()
this->getContentHeight()
);
break;