path: root/src/examples/elementary/
diff options
authorYeongjong Lee <>2019-01-16 16:47:51 +0900
committerJaehyun Cho <>2019-01-16 16:47:51 +0900
commit78ae9c0ae069ff86e701ff98cf5674cc491ee156 (patch)
treeeb8ce90d755fc664b839b155778e31f5ec42dad0 /src/examples/elementary/
parent4858d9eb81f4aa5d24b9555b5caf0e058609d8ab (diff)
gfx: Add size hint fill (EO)
Summary: If widget use both hint_align(HINT_FILL) and hint_max together, there is no way to set to hint_align. See, elementary_test -to '' - "Button with a quite long text." button. you can control button position using "Box align" slider, but this is not proper implementation. When there are two widget which have hint_align(HINT_FILL) and hint_max, those positions are determined by box_align rather than hint_align. it means widget align cannot be set individually. To solve this problem, this patch add hint_fill property. in order to avoid conflict with legacy API named evas_object_size_hint_fill_set(), it only works for EO widgets(made by efl_add). Also, EFL_GFX_SIZE_HINT_FILL is removed. @feature Test Plan: elementary_test -to '' elementary_test -to 'efl.ui.table' Reviewers: jpeg, Hermet, Jaehyun_Cho, raster, barbieri Reviewed By: Jaehyun_Cho Subscribers: cedric, #reviewers, #committers Tags: #efl Maniphest Tasks: T3912 Differential Revision:
Diffstat (limited to 'src/examples/elementary/')
1 files changed, 1 insertions, 1 deletions
diff --git a/src/examples/elementary/ b/src/examples/elementary/
index df9a5a4f12..4e7a17fe21 100644
--- a/src/examples/elementary/
+++ b/src/examples/elementary/
@@ -34,7 +34,7 @@ efl_main(void *data EINA_UNUSED, const Efl_Event *ev EINA_UNUSED)
34 34
35 ::elm::Calendar cal2(instantiate, win); 35 ::elm::Calendar cal2(instantiate, win);
36 //cal2.size_hint_weight_set(EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); 36 //cal2.size_hint_weight_set(EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
37 //cal2.size_hint_align_set(EVAS_HINT_FILL, EVAS_HINT_FILL); 37 //cal2.size_hint_fill_set(true, true);
38 current_time = time(NULL) +2 * SECS_DAY; 38 current_time = time(NULL) +2 * SECS_DAY;
39 localtime_r(&current_time, &selected_time); 39 localtime_r(&current_time, &selected_time);
40 // cal2.selected_time_set(&selected_time); 40 // cal2.selected_time_set(&selected_time);