From 4b6ce096e6116b94381960f3a941dbc77dd07d9e Mon Sep 17 00:00:00 2001 From: "sriram.k" Date: Sat, 8 Jun 2013 17:25:23 +0530 Subject: [PATCH] Fix for Uts failures. Signed-off-by: sriram.k Change-Id: Ic8b8ce1b3720ec335d97db81e5c155a153217262 --- src/ui/controls/FUiCtrl_TokenEditPresenter.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ui/controls/FUiCtrl_TokenEditPresenter.cpp b/src/ui/controls/FUiCtrl_TokenEditPresenter.cpp index 1d10904..9a039c2 100644 --- a/src/ui/controls/FUiCtrl_TokenEditPresenter.cpp +++ b/src/ui/controls/FUiCtrl_TokenEditPresenter.cpp @@ -3713,7 +3713,7 @@ _TokenEditPresenter::ChangeInternalLayout(_ControlOrientation orientation) } } - if (IsFocused()) + if (__pTokenEdit->IsAttachedToMainTree() && IsFocused()) { r = AdjustFlexibleHeight(); SysTryReturnResult(NID_UI_CTRL, r == E_SUCCESS, r, "Propagating."); @@ -3738,6 +3738,7 @@ _TokenEditPresenter::ChangeInternalLayout(_ControlOrientation orientation) __isNeedToScroll = true; } } + return r; } -- 2.7.4