more tooltip calc fixes: if edje minw/minh is 0x0 from calc, use evas minw/minh so...
authordiscomfitor <discomfitor@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sun, 31 Jul 2011 14:29:04 +0000 (14:29 +0000)
committerMike McCormack <mj.mccormack@samsung.com>
Wed, 23 Nov 2011 00:56:58 +0000 (09:56 +0900)
git-svn-id: https://svn.enlightenment.org/svn/e/trunk/elementary@61926 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/els_tooltip.c

index e15a1ed..036c8a7 100644 (file)
@@ -340,8 +340,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 */