Commit da86b618 authored by Aloshi's avatar Aloshi

Quick fix for the stack overflow with DateTimeComponents in a ComponentGrid.

parent 90bd22df
......@@ -256,6 +256,8 @@ void DateTimeComponent::updateTextCache()
if(mAutoSize)
{
mSize = mTextCache->metrics.size;
mAutoSize = false;
if(getParent())
getParent()->onSizeChanged();
}
......@@ -302,6 +304,7 @@ void DateTimeComponent::setFont(std::shared_ptr<Font> font)
void DateTimeComponent::onSizeChanged()
{
mAutoSize = false;
updateTextCache();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment