diff --git a/es-core/src/components/DateTimeComponent.cpp b/es-core/src/components/DateTimeComponent.cpp index 6015be506..81775319e 100644 --- a/es-core/src/components/DateTimeComponent.cpp +++ b/es-core/src/components/DateTimeComponent.cpp @@ -253,8 +253,9 @@ void DateTimeComponent::updateTextCache() std::shared_ptr font = getFont(); mTextCache = std::unique_ptr(font->buildTextCache(dispString, 0, 0, mColor)); - if(!mSizeSet) - mSize = mTextCache->metrics.size; + mSize = mTextCache->metrics.size; + if(getParent()) + getParent()->onSizeChanged(); //set up cursor positions mCursorBoxes.clear();