From 32dbf962593fc4486267fc49c3e5127efede79ac Mon Sep 17 00:00:00 2001 From: Hermet Park Date: Mon, 25 Jul 2016 19:21:13 +0900 Subject: [PATCH] live_edit: fix broken relative popup. If a relative part has a long name, its text will be drawn over the popup box. Set it's maximum size to prevent this. --- src/bin/live_edit.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bin/live_edit.c b/src/bin/live_edit.c index 351081a..99680b9 100644 --- a/src/bin/live_edit.c +++ b/src/bin/live_edit.c @@ -1350,7 +1350,7 @@ show_relative_to_list(live_data *ld, int x, int y, Ctrl_Pt cp) //List for relative X Evas_Object *list_x = elm_list_add(layout); elm_list_mode_set(list_x, ELM_LIST_EXPAND); - evas_object_size_hint_max_set(list_x, 0, ELM_SCALE_SIZE(200)); + evas_object_size_hint_max_set(list_x, ELM_SCALE_SIZE(115), ELM_SCALE_SIZE(200)); it = elm_list_item_append(list_x, "(none)", NULL, NULL, NULL, NULL); elm_list_item_selected_set(it, EINA_TRUE); elm_object_part_content_set(layout, "elm.swallow.x", list_x); @@ -1358,7 +1358,7 @@ show_relative_to_list(live_data *ld, int x, int y, Ctrl_Pt cp) //List for relative Y Evas_Object *list_y = elm_list_add(layout); elm_list_mode_set(list_y, ELM_LIST_EXPAND); - evas_object_size_hint_max_set(list_y, 0, ELM_SCALE_SIZE(200)); + evas_object_size_hint_max_set(list_y, ELM_SCALE_SIZE(115), ELM_SCALE_SIZE(200)); it = elm_list_item_append(list_y, "(none)", NULL, NULL, NULL, NULL); elm_list_item_selected_set(it, EINA_TRUE); elm_object_part_content_set(layout, "elm.swallow.y", list_y);