Fixed Nabi Issues N_SE-56966,56735
[apps/osp/Internet.git] / src / IntDefaultCustomItem.cpp
index 926e6ca..53209c0 100644 (file)
@@ -2,7 +2,7 @@
 
 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
 //
-// Licensed under the Flora License, Version 1.0 (the License);
+// Licensed under the Flora License, Version 1.1 (the License);
 // you may not use this file except in compliance with the License.
 // You may obtain a copy of the License at
 //
@@ -22,6 +22,7 @@
  */
 
 #include <FUiControls.h>
+#include "IntCommonLib.h"
 #include "IntDefaultCustomItem.h"
 #include "IntTypes.h"
 
@@ -47,6 +48,7 @@ result
 DefaultCustomItem::Construct(int width, int height)
 {
        result r = E_FAILURE;
+       __fontSize = CommonUtil::GetFontSize();
        __width = width;
        __height = height;
        const Dimension dim(width, height);
@@ -78,7 +80,7 @@ DefaultCustomItem::Make(void)
        const int y_Margin_Element = 26;
        const int width_Element = __width - 60;
 
-       r = AddElement(Rectangle(x_Margin_Element, y_Margin_Element, width_Element,60), IDA_FORMAT_STRING, __text, textSize, CUSTOM_COLOR_TRANSPARENT,CUSTOM_COLOR_TRANSPARENT,CUSTOM_COLOR_TRANSPARENT,true);
+       r = AddElement(Rectangle(x_Margin_Element, y_Margin_Element, width_Element,60 + (__fontSize - 44)), IDA_FORMAT_STRING, __text, __fontSize , CUSTOM_COLOR_TRANSPARENT,CUSTOM_COLOR_TRANSPARENT,CUSTOM_COLOR_TRANSPARENT,true);
        TryCatch( !IsFailed(r),,"DefaultCustomItem::Make %s",GetErrorMessage(r));
 
 //     SetElementSelectionEnabled(IDA_FORMAT_STRING, true);