diff options
author | Eunki, Hong <eunkiki.hong@samsung.com> | 2023-10-26 13:38:48 +0900 |
---|---|---|
committer | Eunki, Hong <eunkiki.hong@samsung.com> | 2023-10-26 13:40:53 +0900 |
commit | c45e7700fa93d568dff9e31be4efdc0e1bc5845d (patch) | |
tree | 3649c135543b441cfaa7b4b51b6ab1d464ebfb73 /examples | |
parent | 5afa6ec02a3dcb24659d7bfb752e92efaff9876d (diff) | |
download | dali-demo-c45e7700fa93d568dff9e31be4efdc0e1bc5845d.tar.gz dali-demo-c45e7700fa93d568dff9e31be4efdc0e1bc5845d.tar.bz2 dali-demo-c45e7700fa93d568dff9e31be4efdc0e1bc5845d.zip |
Fix demo app s.t. don't use z=0 scale
If we use LAYER_UI, z=0 scale can make various bugs.
Let we resolve that kind of bugs.
Change-Id: Iba39cf09202be3ed30cef8656f8dae2e090eaabd
Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
Diffstat (limited to 'examples')
-rw-r--r-- | examples/inherit-test/inherit-test-example.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/examples/inherit-test/inherit-test-example.cpp b/examples/inherit-test/inherit-test-example.cpp index 226fe2af..69e9d6b8 100644 --- a/examples/inherit-test/inherit-test-example.cpp +++ b/examples/inherit-test/inherit-test-example.cpp @@ -216,9 +216,9 @@ public: mParent.SetBackgroundColor(Color::BLUE); mParent.SetProperty(Actor::Property::PARENT_ORIGIN, ParentOrigin::CENTER); mParent.SetProperty(Actor::Property::ANCHOR_POINT, AnchorPoint::CENTER); - mParent.SetProperty(Actor::Property::SIZE, parentViewSize); + mParent.SetProperty(Actor::Property::SIZE, Vector3(parentViewSize)); mParent.SetProperty(Actor::Property::POSITION, Vector3::ZERO); - mParent.SetProperty(Actor::Property::SCALE, parentViewScale); + mParent.SetProperty(Actor::Property::SCALE, Vector3(parentViewScale.x, parentViewScale.y, 1.0f)); Vector3 parentOrigin = PARENT_ORIGIN_LIST[mParentOriginIndex]; Vector3 anchorPoint = ANCHOR_POINT_LIST[mAnchorPointIndex]; @@ -234,9 +234,9 @@ public: mCurrent.SetBackgroundColor(Color::RED); mCurrent.SetProperty(Actor::Property::PARENT_ORIGIN, parentOrigin); mCurrent.SetProperty(Actor::Property::ANCHOR_POINT, anchorPoint); - mCurrent.SetProperty(Actor::Property::SIZE, currentViewSize); - mCurrent.SetProperty(Actor::Property::POSITION, currentViewPosition); - mCurrent.SetProperty(Actor::Property::SCALE, currentViewScale); + mCurrent.SetProperty(Actor::Property::SIZE, Vector3(currentViewSize)); + mCurrent.SetProperty(Actor::Property::POSITION, Vector3(currentViewPosition)); + mCurrent.SetProperty(Actor::Property::SCALE, Vector3(currentViewScale.x, currentViewScale.y, 1.0f)); mCurrent.SetProperty(Actor::Property::INHERIT_POSITION, inheritPosition); mCurrent.SetProperty(Actor::Property::INHERIT_SCALE, inheritScale); |