If right side(top-right) of spacer is larger than
parent, change align of spacer.
Then spacer is readjusted only
if hoversel on the left area is smaller than spacer.
Change-Id: I49eb034c96497debc92be011b591cba99e70c96d
else
elm_object_signal_emit(sd->hover, "elm,state,align,right", "elm");
- adjusted.w = (parent.x + parent.w) - adjusted.x;
+ // TIZEN_ONLY(20201116): elm_hoversel: Fix spacer size calculation
+ // NOTE: Resize spacer(adjusted) only when left area of spacer is
+ // smaller than size of spacer.
+ if ((base.x + base.w ) - parent.x < adjusted.w)
+ adjusted.w = (base.x + base.w ) - parent.x;
+ //adjusted.w = (parent.x + parent.w) - adjusted.x;
+ //
}
}
}