mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-02-18 04:45:39 +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();
|
std::shared_ptr<Font> font = getFont();
|
||||||
mTextCache = std::unique_ptr<TextCache>(font->buildTextCache(dispString, 0, 0, mColor));
|
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
|
//set up cursor positions
|
||||||
mCursorBoxes.clear();
|
mCursorBoxes.clear();
|
||||||
|
|
Loading…
Reference in a new issue