modify popup control margin accepted/tizen_2.1/20130425.023719 submit/tizen_2.1/20130424.224149
authorsangsoo lee <sangs87.lee@samsung.com>
Wed, 24 Apr 2013 02:52:39 +0000 (11:52 +0900)
committersangsoo lee <sangs87.lee@samsung.com>
Wed, 24 Apr 2013 02:52:39 +0000 (11:52 +0900)
Change-Id: I7fe4fb7deec841a252bfd1049e08e7ff4b501b92

src/IstDetailForm.cpp

index 14a4784..8567555 100644 (file)
@@ -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);