forked from enlightenment/enventor
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.
This commit is contained in:
parent
f8df90b1bd
commit
32dbf96259
|
@ -1350,7 +1350,7 @@ show_relative_to_list(live_data *ld, int x, int y, Ctrl_Pt cp)
|
||||||
//List for relative X
|
//List for relative X
|
||||||
Evas_Object *list_x = elm_list_add(layout);
|
Evas_Object *list_x = elm_list_add(layout);
|
||||||
elm_list_mode_set(list_x, ELM_LIST_EXPAND);
|
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);
|
it = elm_list_item_append(list_x, "(none)", NULL, NULL, NULL, NULL);
|
||||||
elm_list_item_selected_set(it, EINA_TRUE);
|
elm_list_item_selected_set(it, EINA_TRUE);
|
||||||
elm_object_part_content_set(layout, "elm.swallow.x", list_x);
|
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
|
//List for relative Y
|
||||||
Evas_Object *list_y = elm_list_add(layout);
|
Evas_Object *list_y = elm_list_add(layout);
|
||||||
elm_list_mode_set(list_y, ELM_LIST_EXPAND);
|
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);
|
it = elm_list_item_append(list_y, "(none)", NULL, NULL, NULL, NULL);
|
||||||
elm_list_item_selected_set(it, EINA_TRUE);
|
elm_list_item_selected_set(it, EINA_TRUE);
|
||||||
elm_object_part_content_set(layout, "elm.swallow.y", list_y);
|
elm_object_part_content_set(layout, "elm.swallow.y", list_y);
|
||||||
|
|
Loading…
Reference in New Issue