textinput/peninputgenericitut/src/peninputitutwesternuimgr.cpp
branchRCL_3
changeset 56 8152b1f1763a
parent 50 5a1685599b76
equal deleted inserted replaced
50:5a1685599b76 56:8152b1f1763a
   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     	
   130     	CGenericItutUiLayout* itutLayout = 
   131     	// Get the screen rect
   131 			static_cast<CGenericItutUiLayout*>( LayoutContext()->UiLayout() );
   132     	TRect screenRect = DataMgr()->screenSize();
   132 		itutLayout->SizeChanged( NULL );
   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     		}
       
   140     	}
   133     	}
   141     iCurrentState->OnEntryL();
   134     iCurrentState->OnEntryL();
   142     }
   135     }
   143 
   136 
   144 void CWesternItutUiMgr::ActivateUiL()
   137 void CWesternItutUiMgr::ActivateUiL()