X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;ds=sidebyside;f=src%2Fcontrols%2FFWebCtrl_AuthConfirmPopup.cpp;h=eeaa139033a1b7a14715381dc7e82172b6aa7ce4;hb=68830af363a01550e0d5ad00d02ebd19688598ac;hp=ae32ed0b21fe59b19b8b6e77923275b4fe9d2951;hpb=03f3cfa2080c3f7d7349188b98aa7e5e19529c81;p=framework%2Fosp%2Fweb.git diff --git a/src/controls/FWebCtrl_AuthConfirmPopup.cpp b/src/controls/FWebCtrl_AuthConfirmPopup.cpp index ae32ed0..eeaa139 100755 --- a/src/controls/FWebCtrl_AuthConfirmPopup.cpp +++ b/src/controls/FWebCtrl_AuthConfirmPopup.cpp @@ -28,6 +28,7 @@ #include #include #include +#include #include #include #include @@ -35,8 +36,8 @@ #include #include #include -#include "FWebCtrl_WebImpl.h" #include "FWebCtrl_AuthConfirmPopup.h" +#include "FWebCtrl_WebImpl.h" using namespace Tizen::Base; @@ -47,13 +48,13 @@ using namespace Tizen::Ui; using namespace Tizen::Ui::Controls; -static const int AUTH_POPUP_TMP_LABLE_HEIGHT = 10; - - namespace Tizen { namespace Web { namespace Controls { +static const int EDIT_TEXT_SIZE = 35; + + _AuthConfirmPopup::_AuthConfirmPopup(void) : __pIdEditField(null) , __pPwdEditField(null) @@ -64,6 +65,10 @@ _AuthConfirmPopup::_AuthConfirmPopup(void) _AuthConfirmPopup::~_AuthConfirmPopup(void) { + if (IsModalPopup()) + { + __pAuthHandler->Cancel(); + } } @@ -84,11 +89,11 @@ _AuthConfirmPopup::Construct(const String& host, const String& realm, Authentica Rectangle rect(0, 0, 0, 0); rect.width = pPopupData->popupDim.width; - rect.height = (5*pPopupData->spacePad) + (pPopupData->editDim.height*2) + pPopupData->btnDim.height + 2*pPopupData->labelDim.height; + rect.height = (2*pPopupData->spacePad) + (pPopupData->editDim.height*2) + pPopupData->panelHeight + (2*pPopupData->labelDim.height); r = _WebPopup::Construct(true, Dimension(rect.width, rect.height)); SysTryReturn(NID_WEB_CTRL, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage(r)); - SetTitleText("Authentication Required"); + SetTitleText(pSysResource->GetString(_RESOURCE_DOMAIN_ID_OSP, "IDS_TPLATFORM_HEADER_ENTER_CREDENTIALS_ABB")); //host realm label rect.height = 2*pPopupData->labelDim.height; @@ -96,11 +101,9 @@ _AuthConfirmPopup::Construct(const String& host, const String& realm, Authentica std::unique_ptr