bx = elm_box_add(win);
elm_win_resize_object_add(win, bx);
- evas_object_size_hint_weight_set(bx, 0.0, 0.0);
+ elm_box_padding_set(bx, 10, 10);
+ evas_object_size_hint_weight_set(bx, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
evas_object_show(bx);
bt = elm_button_add(win);
if (!data) return;
next_layout = eina_list_data_get(tdata->transitions);
layout_data = elm_box_transition_new(2.0, tdata->last_layout,
- NULL, NULL, next_layout, NULL, NULL,
- _test_box_transition_change, tdata);
+ NULL, NULL, next_layout, NULL, NULL,
+ _test_box_transition_change, tdata);
elm_box_layout_set(tdata->box, elm_box_layout_transition, layout_data, elm_box_transition_free);
tdata->last_layout = next_layout;
_win_del(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Transitions_Data *tdata = data;
+ if (!data) return;
elm_box_layout_set(tdata->box, evas_object_box_layout_horizontal, NULL, NULL);
- free(data);
+ free(tdata);
}
void
Evas_Coord minw, minh, mnw, mnh;
const Eina_List *l;
Evas_Object_Box_Option *opt;
+ int c;
/* FIXME: need to calc max */
minw = 0;
}
}
}
+ c = eina_list_count(priv->children) - 1;
+ if (c > 0)
+ {
+ if (horizontal) minw += priv->pad.h * c;
+ else minh += priv->pad.v * c;
+ }
evas_object_size_hint_min_set(box, minw, minh);
}
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));
yy + (Evas_Coord)(((double)(hh - oh)) * ay));
evas_object_resize(obj, ow, oh);
xx += ww;
+ xx += priv->pad.h;
}
else
{
yy + (Evas_Coord)(((double)(hh - oh)) * ay));
evas_object_resize(obj, ow, oh);
yy += hh;
+ yy += priv->pad.v;
}
}
}