Fixed Nabi Issues N_SE-54919,54952,55044
[apps/osp/Internet.git] / src / IntNotificationPanel.cpp
index a479bfb..9b68982 100644 (file)
@@ -78,7 +78,7 @@ NotificationPanel::OnTimerExpired(Tizen::Base::Runtime::Timer& timer)
 void
 NotificationPanel::ShowNotification(void)
 {
-       SceneManager* pSceneManager = null;
+       SceneManager* pSceneManager = SceneManager::GetInstance();
        if ( __pLabel != NULL)
        {
                AddControl(__pLabel);
@@ -114,3 +114,22 @@ NotificationPanel::SetPositionDiff(int pos)
 {
        __position = pos ;
 }
+
+void
+NotificationPanel::OrientationChanged()
+{
+       SceneManager* pSceneManager = SceneManager::GetInstance();
+       SceneId sceneId = pSceneManager->GetInstance()->GetCurrentSceneId();
+
+       if (sceneId == IDSCN_EDIT_HISTORY_LIST || sceneId == IDSCN_EDIT_BOOKMARK_LIST /*|| sceneId == IDSCN_SETTINGS*/)
+       {
+               SetPosition(0,__form.GetClientAreaBounds().height - GetHeight());
+               SetSize(__form.GetWidth(),GetHeight());
+       }
+       else
+       {
+               // Since there is a footer panel for the Main form need to subtract __position which is equal to footer panel height.
+               SetPosition(0,__form.GetClientAreaBounds().height -__position - GetHeight());
+       }
+       Invalidate(true);
+}