Revert "Edje min_restricted_calc: Fixed min height calculation for textblock."
authortasn <tasn@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Mon, 13 Jun 2011 09:31:58 +0000 (09:31 +0000)
committertasn <tasn@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Mon, 13 Jun 2011 09:31:58 +0000 (09:31 +0000)
This reverts commit 60239

I guess the world is not ready for correct min height calculation, too
many things depend on the current behavior. Will re-apply sometime in
the future.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/edje@60264 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/edje_util.c

index e73e5eb..578fca3 100644 (file)
@@ -2284,18 +2284,6 @@ edje_object_size_min_restricted_calc(Evas_Object *obj, Evas_Coord *minw, Evas_Co
                             (!((Edje_Part_Description_Text *)ep->chosen_description)->text.min_x) &&
                             (didw)))
                         {
-                            if ((ep->part->type == EDJE_PART_TYPE_TEXTBLOCK))
-                              {
-                                 Evas_Coord tb_mh;
-                                 evas_object_textblock_size_formatted_get(
-                                    ep->object, NULL, &tb_mh);
-                                 tb_mh -= ep->req.h;
-                                 if (tb_mh > h)
-                                   {
-                                      h = tb_mh;
-                                   }
-                                 has_non_fixed_tb = EINA_TRUE;
-                              }
                            if (h > maxh)
                              {
                                 maxh = h;
@@ -2303,6 +2291,11 @@ edje_object_size_min_restricted_calc(Evas_Object *obj, Evas_Coord *minw, Evas_Co
                                 pep = ep;
                              }
                         }
+
+                       if (ep->part->type == EDJE_PART_TYPE_TEXTBLOCK)
+                         {
+                            has_non_fixed_tb = EINA_TRUE;
+                         }
                    }
               }
          }