Page MenuHomePhabricator

MinSizeHint not taken into account until window is resized
Closed, DuplicatePublic

Description

Take the text editor app from the examples repository:
https://git.enlightenment.org/tools/examples.git/tree/apps/c/texteditor/src/texteditor_main.c

And remove the efl_ui_text_scrollable_set(efl_added, EINA_TRUE) line.

You can now insert as much text as you want and the window will not follow you around, so when you add text past the right or bottom borders, you won't see what is happening. This is expected.

However, if after adding text past the borders you try to resize the window, it will immediately jump to the minimum size to contain all the text.

It looks to me like like the text entry widget sets its minimum size so that it can contain all the text, but this is not taken into account until a window resize, for example.

Is there anything I need to fix in this example app, or is this a problem in EFL?