[NUI] Fix ScrollableBase maxScrollDistance issue (#2051)
authorhuiyueun <35286162+huiyueun@users.noreply.github.com>
Thu, 24 Sep 2020 06:19:14 +0000 (15:19 +0900)
committerGitHub <noreply@github.com>
Thu, 24 Sep 2020 06:19:14 +0000 (15:19 +0900)
commit4662853c20aacbd7700f7661a8551d3e3df1a6aa
treedfa3f5a6ba973b642387d5ea7a2e31bc07d42dda
parentedf553b6fdb0ebe6c1d28cbdae19c0db4a078564
[NUI] Fix ScrollableBase maxScrollDistance issue (#2051)

[TDAF-1221] issue

1. If the size of ScrollableBase is changed, maxScrollDistance update is required.
  maxScrollDistance: Maximum range that ScrollableBase can scroll
2. Change maxScrollDistance by calling OnSCrollingChildRelayout at OnMeasure when size changes.
3. Currently, maxScrollDistance is updated based on ContentContainer size only.
  Change this to be modified even if the ScrollableBase size is changed

Signed-off-by: huiyu.eun <huiyu.eun@samsung.com>
src/Tizen.NUI.Components/Controls/ScrollableBase.cs