ScrollView - Fix for incorrect min/max scroll property values 53/24153/1
authorJulien Heanley <j.heanley@partner.samsung.com>
Tue, 10 Jun 2014 18:34:53 +0000 (19:34 +0100)
committerAdeel Kazmi <adeel.kazmi@samsung.com>
Tue, 8 Jul 2014 17:46:55 +0000 (18:46 +0100)
commit60afabc94b569253925cbad5766fd6b4d860f757
tree51894c5c7b04d7a47c9ed500bcf1688084ad1ff8
parentdfd5e2bb9fad25b532ebed9713414ee9700c3255
ScrollView - Fix for incorrect min/max scroll property values

[problem]      Scroll min/max property values would be incorrect
[cause]        UpdatePropertyDomain attempts to avoid setting values if ones requested are the same as current properties. If SetRulerX/Y is called once with incorrect value and a second time with correct value, but same as value before first call, the property value retrieved will still be the old value and evaluate as the same, even though after next update frame this value is changed to same value as the first call
[solution]     Store last set values locally and check against these instead of actual properties.

Change-Id: I62bc6fd3b5f9d8e9cbbb000b90b46fc90c0dd51a
Signed-off-by: Julien Heanley <j.heanley@partner.samsung.com>
Signed-off-by: Adeel Kazmi <adeel.kazmi@samsung.com>
base/dali-toolkit/internal/controls/scrollable/scroll-view/scroll-view-impl.cpp
base/dali-toolkit/internal/controls/scrollable/scroll-view/scroll-view-impl.h