Skip to content

Commit

Permalink
Fixed DateTimeComponent being cut off when a date is manually entered…
Browse files Browse the repository at this point in the history
… (from "unknown" -> "01/01/1990").
  • Loading branch information
Aloshi committed Mar 5, 2015
1 parent 310b1f9 commit 5d0fc6a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions es-core/src/components/DateTimeComponent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 5d0fc6a

Please sign in to comment.