Arrange code
[apps/osp/Gallery.git] / src / GlDropDownCustomItem.cpp
index 433c04d..8236118 100644 (file)
@@ -46,10 +46,10 @@ DropDownCustomItem::~DropDownCustomItem(void)
 }
 
 result
-DropDownCustomItem::Construct(int width , int height)
+DropDownCustomItem::Construct(int width, int height)
 {
        __width = width;
-       __height = height + 28 ;
+       __height = height + 28;
        Dimension dim(__width, __height);
        result r = CustomItem::Construct(dim, LIST_ANNEX_STYLE_NORMAL);
        return r;
@@ -86,14 +86,14 @@ DropDownCustomItem::Make(int fontsize, int itemHeight)
 
        int xMargin = 26;
        int yMargin = 22;
-       int subTextHeight = 42 ;
-       int mainTextHeight = itemHeight - yMargin - subTextHeight ;
+       int subTextHeight = 42;
+       int mainTextHeight = itemHeight - yMargin - subTextHeight;
 
        Tizen::Graphics::Bitmap* pDropperBitmapNormal = null;
 
-       AddElement(Rectangle(xMargin, yMargin, __width - 126, mainTextHeight ), IDA_FORMAT_MAIN_STRING,__mainText, fontsize,
+       AddElement(Rectangle(xMargin, yMargin, __width - 126, mainTextHeight), IDA_FORMAT_MAIN_STRING,__mainText, fontsize,
                        CUSTOM_COLOR_TRANSPARENT, CUSTOM_COLOR_TRANSPARENT, CUSTOM_COLOR_TRANSPARENT);
-       AddElement(Rectangle(xMargin, yMargin + mainTextHeight , __width - 126, subTextHeight), IDA_FORMAT_SUB_STRING,__subText, 34, CUSTOM_COLOR_GREY,
+       AddElement(Rectangle(xMargin, yMargin + mainTextHeight, __width - 126, subTextHeight), IDA_FORMAT_SUB_STRING,__subText, 34, CUSTOM_COLOR_GREY,
                        CUSTOM_COLOR_GREY,CUSTOM_COLOR_GREY);
 
        AppResource* pAppResource = UiApp::GetInstance()->GetAppResource();
@@ -110,7 +110,6 @@ DropDownCustomItem::Make(int fontsize, int itemHeight)
 
                AddElement(Rectangle(__width - 95, (__height - 74) / 2, 74, 74), IDA_FORMAT_DROPPER, *pDropperBitmapNormal, pDropperBitmapNormal, pDropperBitmapNormal);
                delete pDropperBitmapNormal;
-
        }
 
        return E_SUCCESS;