Page MenuHomePhabricator

Efl.Ui.Textbox multiline with scroller will make control height = 0
Open, Showstopper IssuesPublic

Description

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()
segfaultxavi triaged this task as Showstopper Issues priority.Dec 16 2019, 2:39 AM
segfaultxavi added a project: efl (efl-1.24).

Please use a more informative title for this task

ali.alzyod renamed this task from Efl.Ui.Textbox multiline with scroller to Efl.Ui.Textbox multiline with scroller will make control height = 0 .Dec 18 2019, 3:17 AM

@ali.alzyod @AbdullehGhujeh is this something you consider to be fixed before 1.24? Its marked as a showstopper and I am trying to understand if there is work going on to fix this before the release or if it is fine to be fixed afterwards.

@stefan_schmidt I do not think there will be soon fixed for this issue.

Thanks, so we will ignore it for the release and can backport a fix later (if needed)