From af2ba9114ee4f1fa30d138b1ea105411abc5805f Mon Sep 17 00:00:00 2001 From: Bhavya Kumili Date: Tue, 25 Jun 2013 17:14:35 +0530 Subject: [PATCH] [Fix for TDIS-6106]Modifying the bounds when dateformat is changed Change-Id: I5261d5a17a508ae34126b69fe9f9edc8ca44c102 --- src/ui/controls/FUiCtrl_EditDate.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/ui/controls/FUiCtrl_EditDate.cpp b/src/ui/controls/FUiCtrl_EditDate.cpp index ab6b816..f3860ab 100644 --- a/src/ui/controls/FUiCtrl_EditDate.cpp +++ b/src/ui/controls/FUiCtrl_EditDate.cpp @@ -952,6 +952,8 @@ _EditDate::OnSettingChanged(String& key) GetDateTimeBar()->Close(); } + UpdateAccessibilityElement(); + Invalidate(); } @@ -1120,6 +1122,15 @@ _EditDate::UpdateAccessibilityElement(void) __pAccessibilityDayElement->SetLabel(dayString); __pAccessibilityMonthElement->SetLabel(monthString); __pAccessibilityYearElement->SetLabel(yearString); + + FloatRectangle dayBounds = __pEditDatePresenter->GetDateAreaBounds(DATETIME_ID_DAY); + FloatRectangle monthBounds = __pEditDatePresenter->GetDateAreaBounds(DATETIME_ID_MONTH); + FloatRectangle yearBounds = __pEditDatePresenter->GetDateAreaBounds(DATETIME_ID_YEAR); + + __pAccessibilityDayElement->SetBounds(dayBounds); + __pAccessibilityMonthElement->SetBounds(monthBounds); + __pAccessibilityYearElement->SetBounds(yearBounds); + return; } -- 2.7.4