(Button) Allow button size to return natural size
authorKingsley Stephens <k.stephens@partner.samsung.com>
Thu, 8 May 2014 13:32:33 +0000 (14:32 +0100)
committerAdeel Kazmi <adeel.kazmi@samsung.com>
Tue, 27 May 2014 14:35:04 +0000 (15:35 +0100)
commite49741997a4c2245fd8461e1aa6856dc2c8e7fa8
tree68f69043bccfbfdc10f40725747f64a6f4979fa6
parent31f8b86ac06be7e61fe3a8637c27e55f12e41168
(Button) Allow button size to return natural size

[Problem] Button needs to give itself a sensible size if no size is set on it
[Cause] Currently buttons with no size will take up the size of the stage
[Solution] Make buttons adjust natural size to wrap around any label they have

Change-Id: I17600d7376ae33b605d0b21dca3a8a7362ed7fb8
base/dali-toolkit/internal/controls/buttons/push-button-impl.cpp
base/dali-toolkit/internal/controls/buttons/push-button-impl.h
base/dali-toolkit/public-api/controls/default-controls/push-button-factory.cpp