efl_ui_image: fix hit_rect geometry only if scale type is expand 43/237843/5
authorJaehyun Cho <jae_hyun.cho@samsung.com>
Mon, 6 Jul 2020 04:42:11 +0000 (13:42 +0900)
committerJaehyun Cho <jae_hyun.cho@samsung.com>
Mon, 6 Jul 2020 08:38:47 +0000 (17:38 +0900)
commitded48779a5b71743a44777d6b4c8e87d0c583df1
tree5758f61bbc8f776aedb0552d468017274a4e49d3
parent0f76f535c38503b0f6a9139154b49cc0bbc7f8a4
efl_ui_image: fix hit_rect geometry only if scale type is expand

In the past version, "clicked" event happens although image file is not
set and resizable is false and scale type is expand.

To keep the backward compatibility of supporting "clicked" event,
hit_rect geometry is set to be the same with object geometry if image
file is not set and scale type is expand.

The above logic is not applied to upstream.
Because size calculation logic between upstream and tizen is different
so _image_sizing_eval() is not called in upstream if image file is not
set.

@tizen_fix

Change-Id: I39e094702d631e2c3150ae7a9b4d8e314468fa5d
src/lib/elementary/efl_ui_image.c