Scaling test: reorder instructions to set the correct scale

If the scale is set on an object before contents are set, it will not
pass to them. Because of this, in the test, scale of the first label
remains 1.0, i.e the window scale, instead of 0.5.
The patch modifies the order of the instructions by setting the scale
after setting the label as content of the frame.
This commit is contained in:
Daniel Zaoui 2016-03-03 10:25:22 +02:00
parent a9c6193bf1
commit dbd03c0881
1 changed files with 1 additions and 1 deletions

View File

@ -76,7 +76,6 @@ test_scaling2(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_
evas_object_show(bx);
fr = elm_frame_add(win);
elm_object_scale_set(fr, 0.5);
elm_object_text_set(fr, "Scale: 0.5");
lb = elm_label_add(win);
elm_object_text_set(lb,
@ -84,6 +83,7 @@ test_scaling2(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_
"is 0.5. Child should<br/>"
"inherit it.");
elm_object_content_set(fr, lb);
elm_object_scale_set(fr, 0.5);
evas_object_show(lb);
elm_box_pack_end(bx, fr);
evas_object_show(fr);