Fixed Nabi Issues: 53721,53372,53761,53768
[apps/osp/Internet.git] / src / IntSettingToggleCustomItem.cpp
index 6258922..021c050 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
 //
@@ -23,6 +23,7 @@
 
 #include <FUiControls.h>
 
+#include "IntCommonLib.h"
 #include "IntSettingToggleCustomItem.h"
 
 using namespace Tizen::App;
@@ -49,6 +50,7 @@ SettingToggleCustomItem::Construct(int width, int height)
 {
        result r = E_FAILURE;
 
+       __fontSize = CommonUtil::GetFontSize();
        __width = width;
        __height = height;
        const Dimension dim(width, height);
@@ -78,8 +80,8 @@ SettingToggleCustomItem::Make(void)
        const int Y_Margin = 26;
        const int textSize = 40;
 
-       AddElement(Rectangle(X_Margin, Y_Margin, __width - 60, 60), IDA_FORMAT_STRING, __text, textSize, textColor, pressedTextColor, pressedTextColor, true);
-       SetElementSelectionEnabled(IDA_FORMAT_STRING, false);
+       AddElement(Rectangle(X_Margin, Y_Margin, __width - 195, 60 + (__fontSize - 44)), IDA_FORMAT_STRING, __text, __fontSize, textColor, pressedTextColor, pressedTextColor, true);
+//     SetElementSelectionEnabled(IDA_FORMAT_STRING, false);
 
        return E_SUCCESS;
 }