Fixed the bg image issues in popup group of controls.
[platform/framework/native/uifw.git] / src / ui / controls / FUiCtrl_MessageBoxPresenter.cpp
index 834de96..f79c10e 100644 (file)
@@ -67,7 +67,6 @@ _MessageBoxPresenter::_MessageBoxPresenter(void)
        , __buttonNum(0)
        , __prevPositionY(-1.0f)
        , __textObjHeight(0.0f)
-       , __bgImageMargin(0.0f)
        , __touchPressFlag(false)
        , __scrollStart(false)
        , __btnClickFlag(false)
@@ -263,8 +262,6 @@ _MessageBoxPresenter::Initialize(_MessageBox& msgbox)
        GET_SHAPE_CONFIG(MESSAGEBOX::BG_IMAGE_TRANSPARENT_BOTTOM_MARGIN, orientation, transBottomMargin);
        GET_SHAPE_CONFIG(MESSAGEBOX::BG_IMAGE_TRANSPARENT_LEFT_MARGIN, orientation, transLeftMargin);
        GET_SHAPE_CONFIG(MESSAGEBOX::BG_IMAGE_TRANSPARENT_RIGHT_MARGIN, orientation, transRightMargin);
-       GET_FIXED_VALUE_CONFIG(MESSAGEBOX::BG_IMAGE_MARGIN, orientation, __bgImageMargin);
-
 
        __titleBgBounds= FloatRectangle(transLeftMargin, transTopMargin, _CoordinateSystemUtils::ConvertToFloat(defaultWidth) - (2 * transLeftMargin), titleHeight);
 
@@ -355,7 +352,7 @@ _MessageBoxPresenter::Initialize(_MessageBox& msgbox)
        __pScrollPanel->SetFocusable(false);
        __pMessageBox->AttachChild(*__pScrollPanel);
 
-       __buttonBgBounds = FloatRectangle(transLeftMargin + __bgImageMargin, __pMessageBox->GetTotalHeight() - bottomHeight - transBottomMargin, _CoordinateSystemUtils::ConvertToFloat(defaultWidth)- (transLeftMargin + transRightMargin) - (2 * __bgImageMargin), bottomHeight - __bgImageMargin);
+       __buttonBgBounds = FloatRectangle(transLeftMargin, __pMessageBox->GetTotalHeight() - bottomHeight - transBottomMargin, _CoordinateSystemUtils::ConvertToFloat(defaultWidth)- (transLeftMargin + transRightMargin), bottomHeight);
 
        r = CreateButtons();
        SysTryCatch(NID_UI_CTRL, r == E_SUCCESS, , r, "[%s] Propagating.", GetErrorMessage(r));