// 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
//
*/
#include <FUiControls.h>
+#include "IntCommonLib.h"
#include "IntDefaultCustomItem.h"
#include "IntTypes.h"
DefaultCustomItem::Construct(int width, int height)
{
result r = E_FAILURE;
+ __fontSize = CommonUtil::GetFontSize();
__width = width;
__height = height;
const Dimension dim(width, height);
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, pressedTextColor, pressedTextColor, 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);
+// SetElementSelectionEnabled(IDA_FORMAT_STRING, true);
CATCH:return r;
}