From 7ac3bc5e84a622851df09c80c35ae4c951ecf351 Mon Sep 17 00:00:00 2001 From: chitta ranjan Date: Thu, 11 Apr 2013 21:27:25 +0900 Subject: [PATCH] fixed issue 30677 Change-Id: I6c35533443ba9523b75d2cc28b5a68d40889f733 Signed-off-by: chitta ranjan --- inc/IntAddressbar.h | 2 +- src/IntAddressbar.cpp | 9 ++++++++- src/IntMainForm.cpp | 6 ++++-- 3 files changed, 13 insertions(+), 4 deletions(-) diff --git a/inc/IntAddressbar.h b/inc/IntAddressbar.h index 6537f7e..5852642 100644 --- a/inc/IntAddressbar.h +++ b/inc/IntAddressbar.h @@ -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 diff --git a/src/IntAddressbar.cpp b/src/IntAddressbar.cpp index 549b136..375e8fd 100644 --- a/src/IntAddressbar.cpp +++ b/src/IntAddressbar.cpp @@ -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) { diff --git a/src/IntMainForm.cpp b/src/IntMainForm.cpp index 32e60a1..5672b5f 100644 --- a/src/IntMainForm.cpp +++ b/src/IntMainForm.cpp @@ -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); } } -- 2.7.4