more tooltip calc fixes: if edje minw/minh is 0x0 from calc, use evas minw/minh so it's visible

SVN revision: 61926
This commit is contained in:
Mike Blumenkrantz 2011-07-31 14:29:04 +00:00
parent 5e7fe97a1e
commit 977eae16c7
1 changed files with 2 additions and 2 deletions

View File

@ -348,8 +348,8 @@ _elm_tooltip_reconfigure(Elm_Tooltip *tt)
evas_object_size_hint_min_get(tt->content, &ominw, &ominh);
edje_object_size_min_get(tt->tooltip, &eminw, &eminh);
if (ominw < eminw) ominw = eminw;
if (ominh < eminh) ominh = eminh;
if (eminw && (ominw < eminw)) ominw = eminw;
if (eminw && (ominh < eminh)) ominh = eminh;
if (ominw < 1) ominw = 10; /* at least it is noticeable */
if (ominh < 1) ominh = 10; /* at least it is noticeable */