- edje_object_size_min_restricted_calc(wd->lbl, &minw, &minh, resw, 0);
- /* This is a hack to workaround the way min size hints are treated.
- * If the minimum width is smaller than the restricted width, it means
- * the mininmum doesn't matter. */
- if ((minw <= resw) && (minw != wd->wrap_w))
+ if (wd->wrap_h == -1) /* open source routine */
+ {
+ edje_object_size_min_restricted_calc(wd->lbl, &minw, &minh, resw, 0);
+ /* This is a hack to workaround the way min size hints are treated.
+ * If the minimum width is smaller than the restricted width, it means
+ * the mininmum doesn't matter. */
+ if ((minw <= resw) && (minw != wd->wrap_w))
+ {
+ Evas_Coord ominw = -1;
+ evas_object_size_hint_min_get(data, &ominw, NULL);
+ minw = ominw;
+ }
+ }
+ else /* ellipsis && linewrap && wrap_height_set routine */