From: Gwangbok Kim Date: Fri, 1 Nov 2013 06:36:29 +0000 (+0900) Subject: fix N_SE-56938 X-Git-Tag: 2.2.1_release X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Ftags%2F2.2.1_release;p=samples%2Fnative%2FContacts.git fix N_SE-56938 Change-Id: I4e1524a8472b12aec5056ec3cd300ec526547382 Signed-off-by: Gwangbok Kim --- diff --git a/project/src/AddressbookListPopup.cpp b/project/src/AddressbookListPopup.cpp index a413f69..7171f5a 100644 --- a/project/src/AddressbookListPopup.cpp +++ b/project/src/AddressbookListPopup.cpp @@ -66,7 +66,7 @@ AddressbookListPopup::Construct(const Form* pForm) __pForm = const_cast (pForm); ScrollPanel* pPopupScrollPanel = new (std::nothrow) ScrollPanel(); - pPopupScrollPanel->Construct(Rectangle(0, 0, GetClientAreaBounds().width, GetClientAreaBounds().height)); + pPopupScrollPanel->Construct(CoordinateSystem::AlignToDevice(FloatRectangle(0, 0, GetClientAreaBoundsF().width, GetClientAreaBoundsF().height))); AddControl(pPopupScrollPanel); Button* pButtonCancel = new (std::nothrow) Button(); diff --git a/project/src/CategoryAddMemberForm.cpp b/project/src/CategoryAddMemberForm.cpp index 05aaf24..df6ee13 100755 --- a/project/src/CategoryAddMemberForm.cpp +++ b/project/src/CategoryAddMemberForm.cpp @@ -82,7 +82,7 @@ CategoryAddMemberForm::OnInitializing(void) pFooter->AddActionEventListener(*this); ScrollPanel* pScrollPanel = new (std::nothrow) ScrollPanel(); - pScrollPanel->Construct(Rectangle(0, 0, GetClientAreaBounds().width, GetClientAreaBounds().height)); + pScrollPanel->Construct(CoordinateSystem::AlignToDevice(FloatRectangle(0, 0, GetClientAreaBoundsF().width, GetClientAreaBoundsF().height))); static int UI_X_POSITION = 5; static int UI_Y_POSITION = 0; diff --git a/project/src/CategoryListForm.cpp b/project/src/CategoryListForm.cpp index 80c0cdc..cee005b 100644 --- a/project/src/CategoryListForm.cpp +++ b/project/src/CategoryListForm.cpp @@ -80,7 +80,7 @@ CategoryListForm::OnInitializing(void) pFooter->AddActionEventListener(*this); ScrollPanel* pScrollPanel = new (std::nothrow) ScrollPanel(); - pScrollPanel->Construct(Rectangle(0, 0, GetClientAreaBounds().width, GetClientAreaBounds().height)); + pScrollPanel->Construct(CoordinateSystem::AlignToDevice(FloatRectangle(0, 0, GetClientAreaBoundsF().width, GetClientAreaBoundsF().height))); unsigned int backgroundColor = 0xABABAB; Color color(backgroundColor, false); diff --git a/project/src/CategoryMemberForm.cpp b/project/src/CategoryMemberForm.cpp index cbf4b62..5a8beac 100755 --- a/project/src/CategoryMemberForm.cpp +++ b/project/src/CategoryMemberForm.cpp @@ -96,7 +96,7 @@ CategoryMemberForm::OnInitializing(void) pFooter->AddActionEventListener(*this); ScrollPanel* pScrollPanel = new (std::nothrow) ScrollPanel(); - pScrollPanel->Construct(Rectangle(0, 0, GetClientAreaBounds().width, GetClientAreaBounds().height)); + pScrollPanel->Construct(CoordinateSystem::AlignToDevice(FloatRectangle(0, 0, GetClientAreaBoundsF().width, GetClientAreaBoundsF().height))); static int UI_X_POSITION = 5; static int UI_Y_POSITION = 0; diff --git a/project/src/CategoryRemoveMemberForm.cpp b/project/src/CategoryRemoveMemberForm.cpp index 281242d..4a01d46 100644 --- a/project/src/CategoryRemoveMemberForm.cpp +++ b/project/src/CategoryRemoveMemberForm.cpp @@ -82,7 +82,7 @@ CategoryRemoveMemberForm::OnInitializing(void) pFooter->AddActionEventListener(*this); ScrollPanel* pScrollPanel = new (std::nothrow) ScrollPanel(); - pScrollPanel->Construct(Rectangle(0, 0, GetClientAreaBounds().width, GetClientAreaBounds().height)); + pScrollPanel->Construct(CoordinateSystem::AlignToDevice(FloatRectangle(0, 0, GetClientAreaBoundsF().width, GetClientAreaBoundsF().height))); static int UI_X_POSITION = 5; static int UI_Y_POSITION = 0; diff --git a/project/src/CreateCategoryForm.cpp b/project/src/CreateCategoryForm.cpp index 21b803c..a84e74e 100644 --- a/project/src/CreateCategoryForm.cpp +++ b/project/src/CreateCategoryForm.cpp @@ -80,7 +80,7 @@ CreateCategoryForm::OnInitializing(void) pFooter->AddActionEventListener(*this); ScrollPanel* pScrollPanel = new (std::nothrow) ScrollPanel(); - pScrollPanel->Construct(Rectangle(0, 0, GetClientAreaBounds().width, GetClientAreaBounds().height)); + pScrollPanel->Construct(CoordinateSystem::AlignToDevice(FloatRectangle(0, 0, GetClientAreaBoundsF().width, GetClientAreaBoundsF().height))); static const int UI_X_POSITION_LEFT = 20; static const int UI_X_RIGHT_MARGIN = 40; diff --git a/project/src/CreateContactForm.cpp b/project/src/CreateContactForm.cpp index 87d2b84..6af3011 100644 --- a/project/src/CreateContactForm.cpp +++ b/project/src/CreateContactForm.cpp @@ -90,7 +90,7 @@ CreateContactForm::OnInitializing(void) pFooter->AddActionEventListener(*this); ScrollPanel* pScrollPanel = new (std::nothrow) ScrollPanel(); - pScrollPanel->Construct(Rectangle(0, 0, GetClientAreaBounds().width, GetClientAreaBounds().height)); + pScrollPanel->Construct(CoordinateSystem::AlignToDevice(FloatRectangle(0, 0, GetClientAreaBoundsF().width, GetClientAreaBoundsF().height))); __pAddressbookNameLabel = new (std::nothrow) Label(); __pAddressbookNameLabel->Construct(Rectangle(0, 0, 500 , 112), L""); diff --git a/project/src/DetailViewForm.cpp b/project/src/DetailViewForm.cpp index 42aedbc..523f25b 100644 --- a/project/src/DetailViewForm.cpp +++ b/project/src/DetailViewForm.cpp @@ -102,7 +102,7 @@ DetailViewForm::OnInitializing(void) pFooter->AddActionEventListener(*this); ScrollPanel* pScrollPanel = new (std::nothrow) ScrollPanel(); - pScrollPanel->Construct(Rectangle(0, 0, GetClientAreaBounds().width, GetClientAreaBounds().height)); + pScrollPanel->Construct(CoordinateSystem::AlignToDevice(FloatRectangle(0, 0, GetClientAreaBoundsF().width, GetClientAreaBoundsF().height))); static const int UI_X_POSITION_LEFT = 20; static const int UI_X_MARGIN_RIGHT = 40; diff --git a/project/src/EditContactForm.cpp b/project/src/EditContactForm.cpp index 23abb67..9908c99 100644 --- a/project/src/EditContactForm.cpp +++ b/project/src/EditContactForm.cpp @@ -104,7 +104,7 @@ EditContactForm::OnInitializing(void) int yPosition = 0; ScrollPanel* pScrollPanel = new (std::nothrow) ScrollPanel(); - pScrollPanel->Construct(Rectangle(0, 0, GetClientAreaBounds().width, GetClientAreaBounds().height)); + pScrollPanel->Construct(CoordinateSystem::AlignToDevice(FloatRectangle(0, 0, GetClientAreaBoundsF().width, GetClientAreaBoundsF().height))); Label* pNameLabel = new (std::nothrow) Label(); pNameLabel->Construct(Rectangle(UI_X_POSITION_LEFT, yPosition += 10, GetClientAreaBounds().width - UI_X_RIGHT_MARGIN , UI_LABEL_HEIGHT), L"Name"); diff --git a/project/src/FavoriteListForm.cpp b/project/src/FavoriteListForm.cpp index fa0153e..d28631f 100644 --- a/project/src/FavoriteListForm.cpp +++ b/project/src/FavoriteListForm.cpp @@ -66,7 +66,7 @@ FavoriteListForm::OnInitializing(void) static int UI_Y_POSITION = 0; ScrollPanel* pScrollPanel = new (std::nothrow) ScrollPanel(); - pScrollPanel->Construct(Rectangle(0, 0, GetClientAreaBounds().width, GetClientAreaBounds().height)); + pScrollPanel->Construct(CoordinateSystem::AlignToDevice(FloatRectangle(0, 0, GetClientAreaBoundsF().width, GetClientAreaBoundsF().height))); __pListView = new (std::nothrow) ListView(); __pListView->Construct(Rectangle(UI_X_POSITION_LEFT, UI_Y_POSITION, GetClientAreaBounds().width, GetClientAreaBounds().height)); diff --git a/project/src/MainForm.cpp b/project/src/MainForm.cpp index a2074ba..be8d848 100644 --- a/project/src/MainForm.cpp +++ b/project/src/MainForm.cpp @@ -88,7 +88,7 @@ MainForm::OnInitializing(void) static int UI_X_RIGHT_MARGIN = 0; ScrollPanel* pScrollPanel = new (std::nothrow) ScrollPanel(); - pScrollPanel->Construct(Rectangle(0, 0, GetClientAreaBounds().width, GetClientAreaBounds().height)); + pScrollPanel->Construct(CoordinateSystem::AlignToDevice(FloatRectangle(0, 0, GetClientAreaBoundsF().width, GetClientAreaBoundsF().height))); __pListView = new (std::nothrow) ListView(); __pListView->Construct(Rectangle(UI_X_POSITION_LEFT, UI_Y_POSITION, GetClientAreaBounds().width - UI_X_RIGHT_MARGIN, GetClientAreaBounds().height));