fixed issue 30677
authorchitta ranjan <chitta.rs@samsung.com>
Thu, 11 Apr 2013 12:27:25 +0000 (21:27 +0900)
committerchitta ranjan <chitta.rs@samsung.com>
Thu, 11 Apr 2013 12:27:25 +0000 (21:27 +0900)
Change-Id: I6c35533443ba9523b75d2cc28b5a68d40889f733
Signed-off-by: chitta ranjan <chitta.rs@samsung.com>
inc/IntAddressbar.h
src/IntAddressbar.cpp
src/IntMainForm.cpp

index 6537f7e..5852642 100644 (file)
@@ -99,7 +99,7 @@ class Addressbar
        /**
         * @brief        Event when orientationChanged
         */
-       void OrientationChanged(void);
+       void OrientationChanged(int& width);
 
        /**
         * brief         To remove the Http from the Url editfield
index 549b136..375e8fd 100644 (file)
@@ -729,8 +729,15 @@ Addressbar::OnKeypadBoundsChanged(Tizen::Ui::Control &source)
 }
 
 void
-Addressbar::OrientationChanged(void)
+Addressbar::OrientationChanged( int& width)
 {
+       int gap = 10;
+       __pBgPanel->SetBounds(__pBgPanel->GetX(),__pBgPanel->GetY(), width - __pAddressBackBtn->GetWidth() - gap -__pBgPanel->GetX() ,__pBgPanel->GetHeight());
+       __pAddressBackBtn->SetBounds(width - __pAddressBackBtn->GetWidth() - 6,__pAddressBackBtn->GetY(),__pAddressBackBtn->GetWidth(),__pAddressBackBtn->GetHeight());
+       __pStopBtn->SetBounds(__pBgPanel->GetWidth() - __pStopBtn->GetWidth(),__pStopBtn->GetY(),__pStopBtn->GetWidth(),__pStopBtn->GetHeight());
+       __pClearBtn->SetBounds(__pBgPanel->GetWidth() - __pClearBtn->GetWidth() ,__pClearBtn->GetY(),__pClearBtn->GetWidth(),__pClearBtn->GetHeight());
+       __pAddressbarUrlField->SetBounds(__pToolBarLabel->GetWidth(),__pAddressbarUrlField->GetY(),__pBgPanel->GetWidth() - __pStopBtn->GetWidth()- __pToolBarLabel->GetWidth() ,__pAddressbarUrlField->GetHeight());
+
        Bitmap *pBitmap = CommonUtil::GetNinepatchedBitmapN(IDB_SEARCH_INPUT_FIELD_BG, __pAddressbarBg->GetWidth(), __pAddressbarBg->GetHeight());
        if (pBitmap != null)
        {
index 32e60a1..5672b5f 100644 (file)
@@ -3503,9 +3503,11 @@ MainForm::OnOrientationChanged (const Tizen::Ui::Control &source, Tizen::Ui::Ori
                }
        }
        Invalidate(true);
-       if(__pAddressbar != null)
+       
+    if (__pAddressbar != null)
        {
-               __pAddressbar->OrientationChanged();
+               int width = GetClientAreaBounds().width;
+               __pAddressbar->OrientationChanged(width);
        }
 }