Fixed issue 50920
authorHimanshu <himanshu.t@samsung.com>
Thu, 5 Sep 2013 06:22:36 +0000 (11:52 +0530)
committerHimanshu <himanshu.t@samsung.com>
Thu, 5 Sep 2013 06:22:36 +0000 (11:52 +0530)
Change-Id: If43a5e81823208a9f4ddfa11ff63d226c2431497
Signed-off-by: Himanshu <himanshu.t@samsung.com>
src/GlImageListEditorPanel.cpp

index 6760adc..5a02f5a 100644 (file)
@@ -46,7 +46,7 @@ static const int COUNT_LABEL_FONT_SIZE = 33;
 static const unsigned int COLOR_COUNT_LABEL = Color32<68, 68, 68>::Value;
 static const unsigned int COLOR_SELECT_COUNT_FONT = Color32<255, 255, 255>::Value;
 static const Color COLOR_THUMBNAIL_DIM (Color::GetColor(COLOR_ID_BLACK));
-static const int H_COUNT_LABEL = 48;
+static const float H_COUNT_LABEL = 48.0f;
 static const int LENGTH_COUNT_LABEL = 256;
 static const int ALPHA_THUMBNAIL_DIM = 70;
 static const Rectangle RECT_INITIAL (0, 0, 10, 10);
@@ -91,8 +91,8 @@ ImageListEditorPanel::OnInitializing(void)
        __pPresentationModel->AddPresentationModelListener(this);
        __itemCount = 0;
 
-       Rectangle clientAreaBounds = pForm->GetClientAreaBounds();
-       SetBounds(0, 0, clientAreaBounds.width, clientAreaBounds.height);
+       FloatRectangle clientAreaBounds = pForm->GetClientAreaBoundsF();
+       SetBounds(0.0f, 0.0f, clientAreaBounds.width, clientAreaBounds.height);
 
        if (__pPresentationModel->GetAppControlMode() == APPCONTROL_MODE_PICK)
        {
@@ -119,7 +119,8 @@ ImageListEditorPanel::OnInitializing(void)
                        __pContentIconListView->SetShowState(true);
 
                        __pLabelSelectCnt = new (std::nothrow) Label();
-                       __pLabelSelectCnt->Construct(Rectangle(0, clientAreaBounds.height - H_COUNT_LABEL,
+                       
+                       __pLabelSelectCnt->Construct(FloatRectangle(0, clientAreaBounds.height - H_COUNT_LABEL,
                                        clientAreaBounds.width, H_COUNT_LABEL), ResourceManager::GetString(L"IDS_ST_POP_NO_ITEMS_SELECTED"));
                        __pLabelSelectCnt->SetTextVerticalAlignment(ALIGNMENT_MIDDLE);
                        __pLabelSelectCnt->SetTextHorizontalAlignment(ALIGNMENT_LEFT);
@@ -649,11 +650,11 @@ ImageListEditorPanel::ChangeOrientation(void)
        const Form* pForm = dynamic_cast<Form*>(pSceneManager->GetCurrentScene()->GetForm());
        TryReturn(pForm != null,, "[%s] fail to get the form.", GetErrorMessage(GetLastResult()));
 
-       Rectangle clientAreaBounds = pForm->GetClientAreaBounds();
-       SetBounds(0, 0, clientAreaBounds.width, clientAreaBounds.height);
+       FloatRectangle clientAreaBounds = pForm->GetClientAreaBoundsF();
+       SetBounds(0.0f, 0.0f, clientAreaBounds.width, clientAreaBounds.height);
        if (__pLabelSelectCnt != NULL)
        {
-       __pLabelSelectCnt->SetBounds(0, clientAreaBounds.height - H_COUNT_LABEL, clientAreaBounds.width, H_COUNT_LABEL);
+       __pLabelSelectCnt->SetBounds(0.0f, clientAreaBounds.height - H_COUNT_LABEL, clientAreaBounds.width, H_COUNT_LABEL);
        }
-       __pContentIconListView->SetBounds(0, 0, clientAreaBounds.width, clientAreaBounds.height -H_COUNT_LABEL);
+       __pContentIconListView->SetBounds(0.0f, 0.0f, clientAreaBounds.width, clientAreaBounds.height -H_COUNT_LABEL);
 }