textinput/peninputgenericitut/src/peninputitutwesternuimgr.cpp
branchRCL_3
changeset 50 5a1685599b76
parent 0 eb1f2e154e89
child 56 8152b1f1763a
equal deleted inserted replaced
46:bd83ceabce89 50:5a1685599b76
   125 
   125 
   126     iCurrentState = newstate;    
   126     iCurrentState = newstate;    
   127     if(DataMgr()->IsUpdate())  
   127     if(DataMgr()->IsUpdate())  
   128     	{
   128     	{
   129     	DataMgr()->SetUpdate(EFalse);
   129     	DataMgr()->SetUpdate(EFalse);
   130     	CGenericItutUiLayout* itutLayout = 
   130     	
   131 			static_cast<CGenericItutUiLayout*>( LayoutContext()->UiLayout() );
   131     	// Get the screen rect
   132 		itutLayout->SizeChanged( NULL );
   132     	TRect screenRect = DataMgr()->screenSize();
       
   133     	// If the screen is in portrait mode
       
   134     	if ( screenRect.Width() < screenRect.Height())
       
   135     		{
       
   136 			CGenericItutUiLayout* itutLayout = 
       
   137 				static_cast<CGenericItutUiLayout*>( LayoutContext()->UiLayout());
       
   138 			itutLayout->SizeChanged( NULL );
       
   139     		}
   133     	}
   140     	}
   134     iCurrentState->OnEntryL();
   141     iCurrentState->OnEntryL();
   135     }
   142     }
   136 
   143 
   137 void CWesternItutUiMgr::ActivateUiL()
   144 void CWesternItutUiMgr::ActivateUiL()