From: JunsuChoi Date: Tue, 17 Nov 2020 01:27:37 +0000 (+0900) Subject: elm_hoversel: Fix spacer size calculation X-Git-Tag: submit/tizen/20201117.104136~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7243851ed38bf7e49d804603ea832f6fcf08666d;p=platform%2Fupstream%2Fefl.git elm_hoversel: Fix spacer size calculation 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 --- diff --git a/src/lib/elementary/elc_hoversel.c b/src/lib/elementary/elc_hoversel.c index d1c8fd7..9c879ea 100644 --- a/src/lib/elementary/elc_hoversel.c +++ b/src/lib/elementary/elc_hoversel.c @@ -387,7 +387,13 @@ _sizing_eval(void *data) 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; + // } } }