bugfix: get entry width based on viewport size, not entry size

things like icon properties dialog now fit on a 4k monitor
This commit is contained in:
Mike Blumenkrantz 2014-03-17 12:23:07 -04:00
parent 791ed12f7b
commit 9859daee07
1 changed files with 3 additions and 1 deletions

View File

@ -243,12 +243,14 @@ EAPI void
e_entry_size_min_get(Evas_Object *entry, Evas_Coord *minw, Evas_Coord *minh)
{
E_Entry_Smart_Data *sd;
int vw;
if (evas_object_smart_smart_get(entry) != _e_entry_smart) SMARTERRNR();
if ((!entry) || (!(sd = evas_object_smart_data_get(entry))))
return;
if (minw) *minw = sd->theme_width + sd->min_width;
e_scrollframe_child_viewport_size_get(sd->scroll_object, &vw, NULL);
if (minw) *minw = sd->theme_width + vw;
if (minh) *minh = sd->theme_height + sd->height;
}