[Fix for TDIS-6106]Modifying the bounds when dateformat is changed
authorBhavya Kumili <bhavya.k@samsung.com>
Tue, 25 Jun 2013 11:44:35 +0000 (17:14 +0530)
committerBhavya Kumili <bhavya.k@samsung.com>
Tue, 25 Jun 2013 11:44:35 +0000 (17:14 +0530)
Change-Id: I5261d5a17a508ae34126b69fe9f9edc8ca44c102

src/ui/controls/FUiCtrl_EditDate.cpp

index ab6b816..f3860ab 100644 (file)
@@ -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;
 }