summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoogab Yun <joogab.yun@samsung.com>2019-12-27 17:54:55 +0900
committerJoogab Yun <joogab.yun@samsung.com>2019-12-27 17:54:55 +0900
commit75ec03ec8ee7ab8c6e99355479787bfcf7481aed (patch)
treedf66cdd9194bea500f0a9cbaf0eb2ae653f7b353
parentdb3c8b111b169d68b5b63cd27bfccb9c2f63e56e (diff)
parent4e0bfdbda5ac9c417fac39dccad26391fe8c0174 (diff)
downloaddali-demo-tizen_5.5_tv.tar.gz
dali-demo-tizen_5.5_tv.tar.bz2
dali-demo-tizen_5.5_tv.zip
-rwxr-xr-xpackaging/com.samsung.dali-demo.spec2
-rw-r--r--shared/dali-table-view.cpp19
2 files changed, 16 insertions, 5 deletions
diff --git a/packaging/com.samsung.dali-demo.spec b/packaging/com.samsung.dali-demo.spec
index 7f49403b..f40233ac 100755
--- a/packaging/com.samsung.dali-demo.spec
+++ b/packaging/com.samsung.dali-demo.spec
@@ -2,7 +2,7 @@
Name: com.samsung.dali-demo
Summary: The OpenGLES Canvas Core Demo
-Version: 1.4.50
+Version: 1.4.51
Release: 1
Group: System/Libraries
License: Apache-2.0
diff --git a/shared/dali-table-view.cpp b/shared/dali-table-view.cpp
index 3760172f..aba375ab 100644
--- a/shared/dali-table-view.cpp
+++ b/shared/dali-table-view.cpp
@@ -287,10 +287,21 @@ void DaliTableView::Initialize( Application& application )
ApplyCubeEffectToPages();
Dali::Window winHandle = application.GetWindow();
- winHandle.AddAvailableOrientation( Dali::Window::PORTRAIT );
- winHandle.RemoveAvailableOrientation( Dali::Window::LANDSCAPE );
- winHandle.AddAvailableOrientation( Dali::Window::PORTRAIT_INVERSE );
- winHandle.RemoveAvailableOrientation( Dali::Window::LANDSCAPE_INVERSE );
+
+ if( stageSize.width <= stageSize.height )
+ {
+ winHandle.AddAvailableOrientation( Dali::Window::PORTRAIT );
+ winHandle.RemoveAvailableOrientation( Dali::Window::LANDSCAPE );
+ winHandle.AddAvailableOrientation( Dali::Window::PORTRAIT_INVERSE );
+ winHandle.RemoveAvailableOrientation( Dali::Window::LANDSCAPE_INVERSE );
+ }
+ else
+ {
+ winHandle.AddAvailableOrientation( Dali::Window::LANDSCAPE );
+ winHandle.RemoveAvailableOrientation( Dali::Window::PORTRAIT );
+ winHandle.AddAvailableOrientation( Dali::Window::LANDSCAPE_INVERSE );
+ winHandle.RemoveAvailableOrientation( Dali::Window::PORTRAIT_INVERSE );
+ }
// Set initial orientation
unsigned int degrees = 0;