forked from enlightenment/efl
Elementary entry: Fix hint_min setting to work with scroller.
SVN revision: 59075
This commit is contained in:
parent
b1631578e7
commit
9fce89e7bb
|
@ -1110,10 +1110,14 @@ static void
|
||||||
_signal_entry_changed(void *data, Evas_Object *obj __UNUSED__, const char *emission __UNUSED__, const char *source __UNUSED__)
|
_signal_entry_changed(void *data, Evas_Object *obj __UNUSED__, const char *emission __UNUSED__, const char *source __UNUSED__)
|
||||||
{
|
{
|
||||||
Widget_Data *wd = elm_widget_data_get(data);
|
Widget_Data *wd = elm_widget_data_get(data);
|
||||||
|
Evas_Coord minh;
|
||||||
if (!wd) return;
|
if (!wd) return;
|
||||||
wd->changed = EINA_TRUE;
|
wd->changed = EINA_TRUE;
|
||||||
/* Reset the size hints which are no more relevant. */
|
/* Reset the size hints which are no more relevant.
|
||||||
evas_object_size_hint_min_set(data, -1, -1);
|
* Keep the height, this is a hack, but doesn't really matter
|
||||||
|
* cause we'll re-eval in a moment. */
|
||||||
|
evas_object_size_hint_min_get(data, NULL, &minh);
|
||||||
|
evas_object_size_hint_min_set(data, -1, minh);
|
||||||
_sizing_eval(data);
|
_sizing_eval(data);
|
||||||
if (wd->text) eina_stringshare_del(wd->text);
|
if (wd->text) eina_stringshare_del(wd->text);
|
||||||
wd->text = NULL;
|
wd->text = NULL;
|
||||||
|
|
Loading…
Reference in New Issue