Corrected Grid Size in landscape Mode 98/71298/1
authorChandan <ch.kumar@samsung.com>
Wed, 25 May 2016 03:10:53 +0000 (08:40 +0530)
committerChandan <ch.kumar@samsung.com>
Wed, 25 May 2016 03:10:53 +0000 (08:40 +0530)
Change-Id: Iafdee5145369c51e5523a10a32111cadf17ffa8d
Signed-off-by: Chandan <ch.kumar@samsung.com>
src/view/ge-albums.c

index 9edbf84..6e99235 100644 (file)
@@ -1458,6 +1458,11 @@ ge_update_gengrid(ge_ugdata *ugd)
        elm_win_screen_size_get(ugd->win, &win_x, &win_y, &win_w, &win_h);
 
        int size = (win_w / 4);
+
+       if (ugd->rotate_mode == GE_ROTATE_LANDSCAPE_UPSIDEDOWN || ugd->rotate_mode == GE_ROTATE_LANDSCAPE) {
+               size = (win_h / 7);
+       }
+
        if (ugd->thumbs_d->medias_elist) {
                _ge_data_util_free_mtype_items(&ugd->thumbs_d->medias_elist);
        }