Fixed TDIS-5448 : set current layout when orientation is changed
authorDongjin Jeon <dongjin2193.jeon@samsung.com>
Mon, 10 Jun 2013 10:45:08 +0000 (16:15 +0530)
committerDongjin Jeon <dongjin2193.jeon@samsung.com>
Mon, 10 Jun 2013 10:45:08 +0000 (16:15 +0530)
Change-Id: I04cde30338accbaa1794932453e67016ecc1cd5d
Signed-off-by: Dongjin Jeon <dongjin2193.jeon@samsung.com>
src/ui/controls/FUiCtrl_PopupImpl.cpp

index c23535b..371e40c 100644 (file)
@@ -330,6 +330,21 @@ _PopupImpl::OnChangeLayout(_ControlOrientation orientation)
 
        }
 
+       Layout* pLayout;
+
+       pLayout = GetPublicLayoutN();
+
+       if (pLayout != null)
+       {
+               Tizen::Ui::_SharedPtr<Tizen::Ui::_LayoutImpl> pLayoutImpl = _LayoutImpl::GetLayoutImpl(pLayout);
+
+               if (!pLayoutImpl.IsNull())
+               {
+                       r = GetCore().SetCurrentLayout(pLayoutImpl->GetCore());
+                       SysTryReturnVoidResult(NID_UI_CTRL, r == E_SUCCESS, E_SYSTEM, "[E_SYSTEM] Failed to set up the current layout");
+               }
+       }
+
        float indicatorheight = 0.0f;
 
        const FloatDimension portraitSize = _ControlManager::GetInstance()->_ControlManager::GetScreenSizeF();