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.
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,
"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);