Fixed size of form in partial form.
authorKeuckdo Bang <keuckdo.bang@samsung.net>
Tue, 28 May 2013 10:12:14 +0000 (19:12 +0900)
committerKeuckdo Bang <keuckdo.bang@samsung.net>
Tue, 28 May 2013 10:12:14 +0000 (19:12 +0900)
Change-Id: I231cee86d30aa6ae6d66a5e92d7794a4a53cf614

src/ui/controls/FUiCtrl_FormImpl.cpp

index eebc762..ef02ecc 100644 (file)
@@ -1121,8 +1121,8 @@ _FormImpl::SetSoftkeyIcon(Softkey softkey, const Bitmap& pNormalBitmap, const Bi
 void
 _FormImpl::OnChangeLayout(_ControlOrientation orientation)
 {
-       const FloatDimension portraitSize = _ControlManager::GetInstance()->_ControlManager::GetScreenSizeF();
-       const FloatDimension landscapeSize = FloatDimension(portraitSize.height, portraitSize.width);
+       FloatDimension portraitSize = _ControlManager::GetInstance()->_ControlManager::GetScreenSizeF();
+       FloatDimension landscapeSize = FloatDimension(portraitSize.height, portraitSize.width);
 
        // Adjust the position of the partial Frame.
        _FrameImpl* pFrameImpl = dynamic_cast<_FrameImpl*>(GetParent());
@@ -1178,10 +1178,14 @@ _FormImpl::OnChangeLayout(_ControlOrientation orientation)
                                {
                                        curPoint.y = portraitSize.width / portraitSize.height * prevPoint.y;
                                }
+
                        }
 
                        pFrameImpl->SetPosition(curPoint);
 
+                       portraitSize = pFrameImpl->GetSizeF();
+                       landscapeSize = portraitSize;
+
                        pFrameImpl->GetCore().SetMovable(movable);
                }
        }