summaryrefslogtreecommitdiff
path: root/src/lib/elementary/efl_ui_tab_bar.c
diff options
context:
space:
mode:
authorBowon Ryu <bowon.ryu@samsung.com>2019-01-31 18:56:26 +0900
committerJaehyun Cho <jae_hyun.cho@samsung.com>2019-01-31 18:56:26 +0900
commitcc5a45101fea936f22c4d364709e8232a7fd3834 (patch)
treea8745aa7a5f95c8aa587baed4cff126b938a2a75 /src/lib/elementary/efl_ui_tab_bar.c
parent5525c89a3d1091cd17c5df6fbdc7378f0d0b4ff3 (diff)
efl_ui_tab_bar: fix tab sizing issue
Summary: The default value of hint_align has changed. So change the hint_align of tab(layout) to HINT_FILL. * Recently, the size_hint_fill API has been added, but currently tab_bar is not available because it uses evas_object_box. * I plan to change evas_object_box to efl.ui.box in the future. Test Plan: elementary_test -to efl.ui.tab_pager Reviewers: Jaehyun_Cho, YOhoho Reviewed By: Jaehyun_Cho Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D7835
Diffstat (limited to '')
-rw-r--r--src/lib/elementary/efl_ui_tab_bar.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/lib/elementary/efl_ui_tab_bar.c b/src/lib/elementary/efl_ui_tab_bar.c
index 7d9f5c29dc..be9f8a12e1 100644
--- a/src/lib/elementary/efl_ui_tab_bar.c
+++ b/src/lib/elementary/efl_ui_tab_bar.c
@@ -221,7 +221,12 @@ _tab_add(Eo *obj, const char *label, const char *icon)
221 ti->tab = NULL; 221 ti->tab = NULL;
222 ti->label = eina_stringshare_add(label); 222 ti->label = eina_stringshare_add(label);
223 223
224 tab = efl_add(EFL_UI_LAYOUT_CLASS, obj); 224 tab = efl_add(EFL_UI_LAYOUT_CLASS, obj,
225 efl_gfx_size_hint_align_set(efl_added, EVAS_HINT_FILL, EVAS_HINT_FILL));
226 /* FIXME: This is for tab sizing issue.
227 * Recently, the size_hint_fill API has been added,
228 * but currently tab_bar is not available because it uses evas_object_box.
229 * This should be removed after the box in tab_bar has been replaced by efl.ui.box */
225 230
226 icon_obj = elm_icon_add(tab); 231 icon_obj = elm_icon_add(tab);
227 232