Arrange code
[apps/osp/Gallery.git] / src / GlImageListEditorPanel.cpp
index bef75fe..6760adc 100644 (file)
@@ -647,9 +647,13 @@ ImageListEditorPanel::ChangeOrientation(void)
        AppLogDebug("ENTER");
        SceneManager* pSceneManager = SceneManager::GetInstance();
        const Form* pForm = dynamic_cast<Form*>(pSceneManager->GetCurrentScene()->GetForm());
-       TryReturn(pForm != null, , "[%s] fail to get the form.", GetErrorMessage(GetLastResult()));
+       TryReturn(pForm != null,, "[%s] fail to get the form.", GetErrorMessage(GetLastResult()));
 
        Rectangle clientAreaBounds = pForm->GetClientAreaBounds();
        SetBounds(0, 0, clientAreaBounds.width, clientAreaBounds.height);
-       __pContentIconListView->SetBounds(0, 0, clientAreaBounds.width, clientAreaBounds.height);
+       if (__pLabelSelectCnt != NULL)
+       {
+       __pLabelSelectCnt->SetBounds(0, clientAreaBounds.height - H_COUNT_LABEL, clientAreaBounds.width, H_COUNT_LABEL);
+       }
+       __pContentIconListView->SetBounds(0, 0, clientAreaBounds.width, clientAreaBounds.height -H_COUNT_LABEL);
 }