Fixed DateTimeComponent being cut off when a date is manually entered (from "unknown" -> "01/01/1990").

This commit is contained in:
Aloshi 2015-03-05 17:21:52 -06:00
parent 310b1f9613
commit 5d0fc6a1b7

View file

@ -253,8 +253,9 @@ void DateTimeComponent::updateTextCache()
std::shared_ptr<Font> font = getFont();
mTextCache = std::unique_ptr<TextCache>(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();