From: sangsoo lee Date: Wed, 24 Apr 2013 02:52:39 +0000 (+0900) Subject: modify popup control margin X-Git-Tag: accepted/tizen_2.1/20130425.023719^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e18f13e53f2f67dff49a57254230328b1ba3cdb1;p=apps%2Fosp%2FInstaller.git modify popup control margin Change-Id: I7fe4fb7deec841a252bfd1049e08e7ff4b501b92 --- diff --git a/src/IstDetailForm.cpp b/src/IstDetailForm.cpp index 14a4784..8567555 100644 --- a/src/IstDetailForm.cpp +++ b/src/IstDetailForm.cpp @@ -324,6 +324,10 @@ DetailForm::SetPopupControl() pButtonClose->SetPosition(X_CANCEL_BTN_ALONE, pButtonClose->GetY()); __pPopup->AddControl(pButtonClose); + popupLayout.SetRelation(*pTextBox, __pPopup, RECT_EDGE_RELATION_LEFT_TO_LEFT); + popupLayout.SetRelation(*pTextBox, __pPopup, RECT_EDGE_RELATION_TOP_TO_TOP); + popupLayout.SetMargin(*pTextBox, 30, 0, 10, 0); + popupLayout.SetRelation(*pButtonClose, __pPopup, RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM); popupLayout.SetCenterAligned(*pButtonClose, CENTER_ALIGN_HORIZONTAL); popupLayout.SetMargin(*pButtonClose, 0, 16, 0, 20); @@ -334,6 +338,10 @@ DetailForm::SetPopupControl() pButtonClose->SetPosition(X_CANCEL_BTN_ALONE, pButtonClose->GetY()); __pPopup->AddControl(pButtonClose); + popupLayout.SetRelation(*pTextBox, __pPopup, RECT_EDGE_RELATION_LEFT_TO_LEFT); + popupLayout.SetRelation(*pTextBox, __pPopup, RECT_EDGE_RELATION_TOP_TO_TOP); + popupLayout.SetMargin(*pTextBox, 30, 0, 10, 0); + popupLayout.SetRelation(*pButtonClose, __pPopup, RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM); popupLayout.SetCenterAligned(*pButtonClose, CENTER_ALIGN_HORIZONTAL); popupLayout.SetMargin(*pButtonClose, 0, 16, 0, 20); @@ -344,9 +352,14 @@ DetailForm::SetPopupControl() __pPopup->AddControl(pButtonInstall); __pPopup->AddControl(pButtonClose); + popupLayout.SetRelation(*popUpLabel, __pPopup, RECT_EDGE_RELATION_LEFT_TO_LEFT); + popupLayout.SetRelation(*popUpLabel, __pPopup, RECT_EDGE_RELATION_TOP_TO_TOP); + popupLayout.SetMargin(*popUpLabel, 30, 0, 10, 0); + popupLayout.SetRelation(*pButtonInstall, __pPopup, RECT_EDGE_RELATION_LEFT_TO_LEFT); popupLayout.SetRelation(*pButtonInstall, __pPopup, RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM); popupLayout.SetMargin(*pButtonInstall, 16, 0, 0, 20); + popupLayout.SetRelation(*pButtonClose, __pPopup, RECT_EDGE_RELATION_RIGHT_TO_RIGHT); popupLayout.SetRelation(*pButtonClose, __pPopup, RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM); popupLayout.SetMargin(*pButtonClose, 0, 16, 0, 20);