mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-25 15:45:38 +00:00
Fixed DateTimeComponent being cut off when a date is manually entered (from "unknown" -> "01/01/1990").
This commit is contained in:
parent
310b1f9613
commit
5d0fc6a1b7
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue