efl_ui_collection: use the correct min size hint

there are not enough size hints, we should add more!
I mixed up which size hints i should have used here, after some back and
forth it turns out that i should use the combined. This fixes the list
example.

Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Differential Revision: https://phab.enlightenment.org/D9779
This commit is contained in:
Marcel Hollerbach 2019-08-28 21:11:11 +02:00
parent 7915aafedd
commit 605d04a302
2 changed files with 3 additions and 2 deletions

View File

@ -315,6 +315,7 @@ elm_main(int argc EINA_UNUSED, char **argv)
elm_win_resize_object_add(win, wbox);
//window show
efl_gfx_entity_visible_set(win, EINA_TRUE);
efl_gfx_entity_size_set(win, EINA_SIZE2D(417, 600));
elm_run();

View File

@ -300,14 +300,14 @@ _size_accessor_get_at(void *data, Efl_Ui_Position_Manager_Size_Call_Config conf,
for (i = 0; i < (conf.range.end_id - conf.range.start_id); ++i)
{
Efl_Gfx_Entity *geom = eina_list_data_get(lst), *parent;
Eina_Size2D size = efl_gfx_hint_size_min_get(geom);
Eina_Size2D size = efl_gfx_hint_size_combined_min_get(geom);
parent = efl_ui_item_parent_get(geom);
sizes[i].size = size;
_fill_depth(geom, &sizes[i].element_depth, &sizes[i].depth_leader);
if (i == 0 && !sizes[0].depth_leader && parent)
{
result.parent_size = efl_gfx_hint_size_min_get(parent);
result.parent_size = efl_gfx_hint_size_combined_min_get(parent);
}
lst = eina_list_next(lst);
if (!lst)