From 674f98e254ee551d1050abb964ce247d31ee770d Mon Sep 17 00:00:00 2001 From: JaeHwanLee Date: Tue, 15 Jan 2013 15:18:57 +0900 Subject: [PATCH] Fixed Issue N_SE-20794 : QuickPanelFrame moved Change-Id: I6abd0946cb8d5183de13aeee5a2d4c902e67ee9a Signed-off-by: JaeHwanLee --- src/FShell_QuickPanelFrame.cpp | 8 ++++++++ src/FShell_QuickPanelFrameImpl.cpp | 4 ++-- src/inc/FShell_QuickPanelFrame.h | 3 +++ 3 files changed, 13 insertions(+), 2 deletions(-) diff --git a/src/FShell_QuickPanelFrame.cpp b/src/FShell_QuickPanelFrame.cpp index a3a4ba5..c62cef9 100644 --- a/src/FShell_QuickPanelFrame.cpp +++ b/src/FShell_QuickPanelFrame.cpp @@ -223,6 +223,14 @@ _QuickPanelFrame::Initialize(int height) Dimension size = pControlManager->GetScreenSize(); + if(size.width == 720) + { + size.width = MINICONTROL_WIDTH_P_MAX; + } + else + { + size.width = MINICONTROL_WIDTH_L_MAX; + } size.height = height; #if !defined(MULTI_WINDOW) diff --git a/src/FShell_QuickPanelFrameImpl.cpp b/src/FShell_QuickPanelFrameImpl.cpp index 312dffe..4820117 100644 --- a/src/FShell_QuickPanelFrameImpl.cpp +++ b/src/FShell_QuickPanelFrameImpl.cpp @@ -252,11 +252,11 @@ _QuickPanelFrameImpl::OnChangeLayout(_ControlOrientation orientation) if (orientation == _CONTROL_ORIENTATION_PORTRAIT) { - size.width = screenSize.width; + size.width = MINICONTROL_WIDTH_P_MAX;; } else { - size.width = screenSize.height; + size.width = MINICONTROL_WIDTH_L_MAX; } SetSize(size); diff --git a/src/inc/FShell_QuickPanelFrame.h b/src/inc/FShell_QuickPanelFrame.h index 788640e..741f193 100644 --- a/src/inc/FShell_QuickPanelFrame.h +++ b/src/inc/FShell_QuickPanelFrame.h @@ -50,6 +50,9 @@ class _QuickPanelFrameLayer; * @since 2.1 */ +const int MINICONTROL_WIDTH_P_MAX = 692; +const int MINICONTROL_WIDTH_L_MAX = 1252; + class _QuickPanelFrame : public Tizen::Ui::_Window { -- 2.7.4