setting textbox
efl_gfx_hint_weight_set(textbox, EFL_GFX_HINT_EXPAND, 0)
And enable scroller
efl_ui_text_scrollable_set(textbox, EINA_TRUE);
Will make the height of textbox 0
#define EFL_EO_API_SUPPORT 1 #define EFL_BETA_API_SUPPORT 1 #ifdef HAVE_CONFIG_H # include "elementary_config.h" #endif #include <Efl_Ui.h> #include <Elementary.h> void test_canvas_textblock(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED) { Eo *win, *box, *textblock, *input; const char *default_style; win = efl_add(EFL_UI_WIN_CLASS, efl_main_loop_get(), efl_text_set(efl_added, "Efl.Canvas.Textblock style"), efl_ui_win_autodel_set(efl_added, EINA_TRUE)); box = efl_add(EFL_UI_BOX_CLASS, win, efl_content_set(win, efl_added), efl_ui_layout_orientation_set(efl_added, EFL_UI_LAYOUT_ORIENTATION_VERTICAL)); input = efl_add(EFL_UI_TEXTBOX_CLASS, box, efl_gfx_hint_weight_set(efl_added, 1, 0.0), efl_text_set(efl_added, "Test Text"), efl_pack(box, efl_added)); efl_ui_textbox_scrollable_set(input, EINA_TRUE); efl_gfx_entity_size_set(win, EINA_SIZE2D(400, 240)); } EAPI_MAIN void efl_main(void *data EINA_UNUSED, const Efl_Event *ev EINA_UNUSED) { test_canvas_textblock(NULL,NULL,NULL); } EFL_MAIN()