void
_EditDate::OnDraw(void)
{
- if (GetDateTimeBar() != null && GetDateTimeBar()->IsActivated())
+ if (GetDateTimeBar() != null)
{
- CalculateDateTimeBarPosition();
+ FloatRectangle absoluteBounds = GetAbsoluteBoundsF();
+
+ if (absoluteBounds.y != __absoluteBounds.y || absoluteBounds.height != __absoluteBounds.height)
+ {
+ CalculateDateTimeBarPosition();
+ }
}
__pEditDatePresenter->Draw();
(_FontImpl::GetInstance(*__pFont))->SetStyle(FONT_STYLE_PLAIN);
- if (boxId == __selectedId && boxId != DATETIME_ID_NONE)
+ if (boxId == GetLastSelectedId() && boxId != DATETIME_ID_NONE)
{
(_FontImpl::GetInstance(*__pFont))->SetStyle(FONT_STYLE_BOLD);
GET_COLOR_CONFIG(EDITDATE::TEXT_PRESSED, textColor);
pReplacementBitmap = __pContentBgDisabledColorReplacementBitmap;
pEffectBitmap = __pContentBgEffectDisabledBitmap;
}
- else if (__selectedId != boxId)
+ else if (GetLastSelectedId() != boxId)
{
isCustomBitmap = IS_CUSTOM_BITMAP(EDITTIME::CONTENT_BG_NORMAL);
pReplacementBitmap = __pContentBgNormalColorReplacementBitmap;
void
_EditTime::OnDraw(void)
{
- if (GetDateTimeBar() != null && GetDateTimeBar()->IsActivated())
+ if (GetDateTimeBar() != null)
{
- CalculateDateTimeBarPosition();
+ FloatRectangle absoluteBounds = GetAbsoluteBoundsF();
+
+ if (absoluteBounds.y != __absoluteBounds.y || absoluteBounds.height != __absoluteBounds.height)
+ {
+ CalculateDateTimeBarPosition();
+ }
}
__pEditTimePresenter->Draw();