List option starts with some gap in camera and recorder settings:N_SE-32941
authorrahul varna <rahul.varna@samsung.com>
Mon, 8 Apr 2013 06:50:03 +0000 (15:50 +0900)
committerrahul varna <rahul.varna@samsung.com>
Mon, 8 Apr 2013 06:50:03 +0000 (15:50 +0900)
Signed-off-by: rahul varna <rahul.varna@samsung.com>
project/src/Camera/CameraCaptureForm.cpp
project/src/Recorder/VideoRecorderForm.cpp

index 859b0b2..f13dd34 100644 (file)
@@ -83,6 +83,7 @@ static const int ICON_HEIGHT = 100;
 static const int PORTRAIT_MODE = 0;
 static const int PORTRAIT_REVERSE_MODE = 1;
 static const int LANDSCAPE_MODE = 3;
+static const int POPUP_X_DISPLACEMENT = 10;
 
 
 static const String FORM_ID = L"CameraCaptureForm";
@@ -613,7 +614,8 @@ CameraCaptureForm::AddListView(ListView** pListView, Popup* pPopup, int id)
                popupRect.height = CAMERA_FORM_LISTVIEW_H;
        }
 
-       r = pCtrl->Construct(Rectangle(0, 0, popupRect.width, popupRect.height), true, false);
+       //As Client area bounds gives us area from the margin of the popup.
+       r = pCtrl->Construct(Rectangle(POPUP_X_DISPLACEMENT, 0, popupRect.width, popupRect.height), true, false);
        TryCatch(r == E_SUCCESS, ShowError(r, METHOD_FILE_LINENO), "[%s] pCtrl->Construct",GetErrorMessage(r));
 
        SetCurrentListViewType(id);
index d1141e3..0c1cac4 100644 (file)
@@ -76,6 +76,7 @@ static const int VR_FORM_LISTVIEW_H  = 250;
 static const int MIN_THREAD_SLEEP_TIME = 200;
 static const int ENABLE_AUDIO_STREAM = 0;
 static const int DISABLE_AUDIO_STREAM = 1;
+static const int POPUP_X_DISPLACEMENT = 10;
 
 static const String FORM_ID = L"VideoRecorderForm";
 extern const Tizen::Ui::Scenes::SceneId VIDEO_RECORDER_SCENE_ID = L"VideoRecorderScene";
@@ -985,7 +986,7 @@ VideoRecorderForm::AddListView(ListView** pListView, Popup* pPopup, int id)
                popupRect.height = VR_FORM_LISTVIEW_H;
        }
 
-       popupRect.x = 0;
+       popupRect.x = POPUP_X_DISPLACEMENT; //As Client area bounds gives us area from the margin of the popup.
        popupRect.y = 0;
 
        r = pCtrl->Construct(popupRect, true, false);