Changed a function name in FlexboxComponent.

This commit is contained in:
Leon Styhre 2022-11-11 18:05:59 +01:00
parent 319992a0f7
commit 3fd18ec2ee
2 changed files with 3 additions and 3 deletions

View file

@ -38,7 +38,7 @@ void FlexboxComponent::render(const glm::mat4& parentTrans)
return;
if (!mLayoutValid)
computeLayout();
calculateLayout();
glm::mat4 trans {parentTrans * getTransform()};
mRenderer->setMatrix(trans);
@ -82,7 +82,7 @@ void FlexboxComponent::setItemMargin(glm::vec2 value)
mLayoutValid = false;
}
void FlexboxComponent::computeLayout()
void FlexboxComponent::calculateLayout()
{
// If we're not clamping itemMargin to a reasonable value, all kinds of weird rendering
// issues could occur.

View file

@ -78,7 +78,7 @@ public:
private:
// Calculate flexbox layout.
void computeLayout();
void calculateLayout();
Renderer* mRenderer;
std::vector<FlexboxItem>& mItems;