undoing some auto align stuff
This commit is contained in:
@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user