static void
_calculate_box_min_size(Evas_Object *box, Evas_Object_Box_Data *priv)
{
- Evas_Coord minw, minh, maxw, maxh, mnw, mnh, ww;
+ Evas_Coord minw, minh, mnw, mnh, ww;
Evas_Coord w, cw = 0, cmaxh = 0;
const Eina_List *l;
Evas_Object_Box_Option *opt;
/* FIXME: need to calc max */
minw = 0;
minh = 0;
- maxw = -1;
- maxh = -1;
evas_object_geometry_get(box, NULL, NULL, &w, NULL);
evas_object_size_hint_min_get(box, &minw, NULL);
Evas_Coord x, y, w, h, xx, yy;
const Eina_List *l;
Evas_Object *obj;
- Evas_Coord minw, minh, wdif, hdif;
- int count = 0;
+ Evas_Coord minw, minh;
double ax, ay;
Evas_Object_Box_Option *opt;
evas_object_size_hint_min_get(o, &minw, &minh);
evas_object_size_hint_align_get(o, &ax, &ay);
- count = eina_list_count(priv->children);
if (w < minw)
{
x = x + ((w - minw) * (1.0 - ax));
h = minh;
}
- wdif = w - minw;
- hdif = h - minh;
xx = x;
yy = y;
{
Evas_Coord mnw, mnh, mxw, mxh;
double wx, wy;
- int fw, fh, xw, xh;
+ int fw, fh;
obj = opt->obj;
evas_object_size_hint_align_get(obj, &ax, &ay);
evas_object_size_hint_min_get(obj, &mnw, &mnh);
evas_object_size_hint_max_get(obj, &mxw, &mxh);
fw = fh = 0;
- xw = xh = 0;
if (ax == -1.0) {fw = 1; ax = 0.5;}
if (ay == -1.0) {fh = 1; ay = 0.5;}
- if (wx > 0.0) xw = 1;
- if (wy > 0.0) xh = 1;
Evas_Coord ww, hh, ow, oh;
if (wx)