efl/src/lib/edje
Jaeyong Hwang acab227544 Edje entry: Fix issue with width calculation and padding
Summary:
The size of the style pad isn't considered when the min value of the
textblock is calculated.  In case of putting the lable that there is an
outline in the box, the letter is cut.  So, I revised so that
evas_object_textblock_style_insets_get could be called after a
evas_object_textblock_size_formatted_get in
_edje_object_size_min_restricted_calc function.  And then the style pad was
considered in the result value of the edje_object_size_min_calc.

@fix

Test Plan:

EAPI_MAIN int
elm_main(int argc, char **argv)
{
   Evas_Object *box, *label;
   Evas_Object *win;

   elm_policy_set(ELM_POLICY_QUIT, ELM_POLICY_QUIT_LAST_WINDOW_CLOSED);

   win = elm_win_util_standard_add("Font", "FONT");
   elm_win_autodel_set(win, EINA_TRUE);

   box = elm_box_add(win);
   elm_box_padding_set(box, 10, 0);
   elm_box_align_set(box, 1, 0.5);
   evas_object_size_hint_weight_set(box, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
   evas_object_size_hint_align_set(box, EVAS_HINT_FILL, EVAS_HINT_FILL);
   elm_win_resize_object_add(win, box);
   evas_object_show(box);

   label = elm_label_add(box);
   elm_object_text_set(label, "<font=default align=rignt color=#ffffff font_size=200 style=soft_outline outline_color=#ff0000ff>label");
   elm_box_pack_end(box, label);
   evas_object_show(label);

   evas_object_resize(win, 500, 300);
   evas_object_show(win);
   elm_run();

   return 0;
}
ELM_MAIN();

Reviewers: herdsman, tasn

Reviewed By: tasn

Subscribers: id213sin, cedric, jpeg

Differential Revision: https://phab.enlightenment.org/D3426
2015-12-17 12:44:36 +00:00
..
Edje.h
Edje_Common.h edje: introduce size_class attribute 2015-12-08 12:25:15 +09:00
Edje_Edit.h edje: fix typos in documentation 2015-09-28 15:42:51 +05:30
Edje_Eo.h
Edje_Legacy.h edje: introduce size_class attribute 2015-12-08 12:25:15 +09:00
edje_box_layout.c
edje_cache.c edje: introduce size_class attribute 2015-12-08 12:25:15 +09:00
edje_calc.c Revert "edje: calc - remove pointer comparison while finding part desc" 2015-12-09 21:29:42 +05:30
edje_callbacks.c
edje_convert.c edje: introduce size_class attribute 2015-12-08 12:25:15 +09:00
edje_convert.h edje: introduce size_class attribute 2015-12-08 12:25:15 +09:00
edje_data.c edje: introduce size_class attribute 2015-12-08 12:25:15 +09:00
edje_edit.c efl: add binary mode to fdopen() calls 2015-12-05 21:05:23 +01:00
edje_edit.eo
edje_embryo.c edje: fix internal colorclass field 2015-09-23 12:34:22 -07:00
edje_entry.c Edje entry: Use markup text for password in preedit mode 2015-12-03 16:04:08 +00:00
edje_external.c
edje_load.c edje: introduce size_class attribute 2015-12-08 12:25:15 +09:00
edje_lua.c
edje_lua2.c
edje_lua_script_only.c
edje_main.c edje: introduce size_class attribute 2015-12-08 12:25:15 +09:00
edje_match.c
edje_message_queue.c
edje_misc.c
edje_module.c
edje_multisense.c
edje_object.eo edje: introduce size_class attribute 2015-12-08 12:25:15 +09:00
edje_private.h edje: introduce size_class attribute 2015-12-08 12:25:15 +09:00
edje_program.c edje - signal matcvhes - fix null deref when patterns is NULL 2015-08-12 20:08:14 +09:00
edje_signal.c edje - signal match code - clean up function readablity and fix crash 2015-11-11 14:57:52 +09:00
edje_smart.c edje: introduce size_class attribute 2015-12-08 12:25:15 +09:00
edje_text.c
edje_textblock_styles.c
edje_types.eot
edje_util.c Edje entry: Fix issue with width calculation and padding 2015-12-17 12:44:36 +00:00
edje_var.c