Modify the animation size for no search result 86/239986/1 submit/tizen/20200731.111516
authorAmritanshu <a.pandia1@samsung.com>
Fri, 31 Jul 2020 08:39:16 +0000 (14:09 +0530)
committerAmritanshu <a.pandia1@samsung.com>
Fri, 31 Jul 2020 08:39:16 +0000 (14:09 +0530)
Change-Id: Icf8f23855f157430e7d5e99bc0343a25f2cc0884
Signed-off-by: Amritanshu <a.pandia1@samsung.com>
src/widget/mp-video-nocontent-layout.c

index 434b69cf013457e9325a2989b94b576f9b336407..4e59fdcc633622a3e3e980bdd659824a3f4a9fa6 100755 (executable)
@@ -21,6 +21,7 @@
 #include "mp-video-log.h"
 #include "mp-video-value-define.h"
 #include <app_common.h>
+#define ELM_SCALE_SIZE_VIDEO(x) ((int)(((double)(x) * elm_config_scale_get()) / 1.0 + 0.5))
 
 /**
  *
@@ -135,7 +136,7 @@ Evas_Object *mp_create_nosearch_result_layout(const Evas_Object * pParent, const
        evas_object_size_hint_align_set(pLayout, EVAS_HINT_FILL, EVAS_HINT_FILL);
 
        Elm_Animation_View *anim_view = elm_animation_view_add(pLayout);
-       evas_object_size_hint_min_set(anim_view, ELM_SCALE_SIZE(540), ELM_SCALE_SIZE(420));
+       evas_object_size_hint_min_set(anim_view, ELM_SCALE_SIZE_VIDEO(405), ELM_SCALE_SIZE_VIDEO(315));
        elm_animation_view_auto_play_set(anim_view, true);
        elm_animation_view_auto_repeat_set(anim_view, true);
        elm_animation_view_file_set(anim_view, json_path, NULL);