Fixed N_SE-34744 issue
authorJongwooLee <jongwoo718.lee@samsung.com>
Wed, 17 Apr 2013 06:05:14 +0000 (15:05 +0900)
committerJongwooLee <jongwoo718.lee@samsung.com>
Wed, 17 Apr 2013 06:05:14 +0000 (15:05 +0900)
Change-Id: I7285402d3e176b93b772ac2e18d87a9830081b2f
Signed-off-by: JongwooLee <jongwoo718.lee@samsung.com>
src/ui/controls/FUiCtrl_GalleryPresenter.cpp

index 4ba4a2c..86d8997 100644 (file)
@@ -733,6 +733,14 @@ _GalleryPresenter::RequestToUpdateItem(int itemIndex)
                SysTryReturn(NID_UI_CTRL, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage(r));
 
                __galleryRenderer.GalleryBoundsChanged(canvasIndex);
+               FloatRectangle canvasBounds = __galleryRenderer.GetCanvasBounds(canvasIndex);
+               FloatRectangle imageBounds = __galleryRenderer.GetCanvasImageBounds(canvasIndex);
+               __pGalleryViewEventHandler->CorrectCanvasPosition(canvasBounds, imageBounds);
+               r = __galleryRenderer.SetCanvasBounds(canvasIndex, canvasBounds);
+               SysTryReturn(NID_UI_CTRL, r == E_SUCCESS, true, r, "[%s] Propagating.", GetErrorMessage(r));
+
+               r = __pGalleryViewEventHandler->AlignCanvas(false);
+               SysTryReturn(NID_UI_CTRL, r == E_SUCCESS, true, r, "[%s] Propagating.", GetErrorMessage(r));
        }
        else if (canvasIndex != NOT_EXIST_CANVAS)
        {