freeze = sd->freeze_sizing;
sd->freeze_sizing = EINA_TRUE;
+
+ //////////////////////////////////////////////////////////////////////////////
+ //TIZEN_ONLY(20150225): Open source datetime code doesn't consider dynamically
+ // field sequence changing case.
+ /*
for (idx = 0; idx < ELM_DATETIME_TYPE_COUNT; idx++)
{
field = sd->field_list + idx;
else
evas_object_hide(elm_layout_content_unset(obj, buf));
}
+ */
+ // remove all the content widget from the layout
+ for (idx = 0; idx < ELM_DATETIME_TYPE_COUNT; idx++)
+ {
+ snprintf(buf, sizeof(buf), EDC_PART_FIELD_STR, idx);
+ elm_layout_content_unset(obj, buf);
+ }
+ // set as content widget or hide it depending on location
+ for (idx = 0; idx < ELM_DATETIME_TYPE_COUNT; idx++)
+ {
+ field = sd->field_list + idx;
+ snprintf(buf, sizeof(buf), EDC_PART_FIELD_STR, field->location);
+
+ if (field->visible && field->fmt_exist)
+ elm_layout_content_set(obj, buf, field->item_obj);
+ else
+ evas_object_hide(field->item_obj);
+ }
+ //////////////////////////////////////////////////////////////////////////////
+
sd->freeze_sizing = freeze;
elm_layout_sizing_eval(obj);