textinput/peninputsplititut/src/peninputsplititutchnuimgr.cpp
branchRCL_3
changeset 50 5a1685599b76
parent 0 eb1f2e154e89
child 56 8152b1f1763a
equal deleted inserted replaced
46:bd83ceabce89 50:5a1685599b76
   325 
   325 
   326     iCurrentState = newState;
   326     iCurrentState = newState;
   327     if(DataMgr()->IsUpdate())  
   327     if(DataMgr()->IsUpdate())  
   328     	{
   328     	{
   329     	DataMgr()->SetUpdate(EFalse);
   329     	DataMgr()->SetUpdate(EFalse);
   330     	CSplitItutUiLayout* itutLayout = 
   330     	
   331 			static_cast<CSplitItutUiLayout*>( LayoutContext()->UiLayout() );
   331     	// Get the screen rect
   332 		itutLayout->SizeChanged( NULL );
   332     	TRect screenRect = DataMgr()->screenSize();
       
   333     	// If the screen is in portrait mode
       
   334     	if ( screenRect.Width() < screenRect.Height())
       
   335     		{
       
   336 			CSplitItutUiLayout* itutLayout = 
       
   337 				static_cast<CSplitItutUiLayout*>( LayoutContext()->UiLayout());
       
   338 			itutLayout->SizeChanged( NULL );
       
   339     		}
   333     	}
   340     	}
   334     
   341     
   335     iCurrentState->OnEntryL();
   342     iCurrentState->OnEntryL();
   336     }
   343     }
   337 
   344