{
ELM_WIDGET_DATA_GET_OR_RETURN(obj, wd);
- if (!sd->ellipsis && (sd->linewrap == ELM_WRAP_NONE))
+ if (!sd->ellipsis && (sd->linewrap == ELM_WRAP_NONE) && (sd->slide_mode == ELM_LABEL_SLIDE_MODE_NONE))
edje_object_signal_emit(wd->resize_obj, "elm,state,horizontal,expandable", "elm");
else
edje_object_signal_emit(wd->resize_obj, "elm,state,horizontal,fixed", "elm");
Eina_Bool min_x, min_y;
Eina_Bool policy_set_ret = EINA_FALSE;
- if (edje_object_part_text_min_policy_get(wd->resize_obj, "elm.text", "default", &min_x, &min_y))
+ if (!sd->ellipsis && (sd->slide_mode == ELM_LABEL_SLIDE_MODE_NONE) &&
+ edje_object_part_text_min_policy_get(wd->resize_obj, "elm.text", "default", &min_x, &min_y))
{
/* If min policy for width is 0, it couldn't be expanded.
It uses legacy theme. */
_elm_label_slide_mode_set(Eo *obj EINA_UNUSED, Elm_Label_Data *sd, Elm_Label_Slide_Mode mode)
{
sd->slide_mode = mode;
+
+ /* TIZEN_ONLY(20161227): don't make ellipsis/slide label as expandable */
+ _elm_label_horizontal_size_policy_update(obj, sd);
+ elm_layout_sizing_eval(obj);
+ /* END */
}
EOLIAN static Elm_Label_Slide_Mode