[Issue]
[Problem] Scroll bar in ScrollView is shown when it shouldn't. It cannot be disabled
even when Scrollable::DisableScrollComponent is called.
[Cause] The images for scroll indicator are not removed when scroll bar is disabled.
[Solution] Remove the scroll indicator images when the scroll bar is disconnected
from scroll view.
Change-Id: I01ff966ad1484b23db5000dd48184fdb2ebe653e
Signed-off-by: David Steele <david.steele@partner.samsung.com>
{
ScrollComponentPtr component = pair->second;
+ // Disconnect the scroll component first.
+ component->OnDisconnect();
+
// Destroy ScrollComponent.
mComponents.erase( type );
}
*/
Toolkit::ScrollConnector GetScrollConnector() const;
+ /**
+ * Called when the scroll component is disconnected from a scrollable container.
+ */
+ virtual void OnDisconnect() {}
+
protected:
/**