textinput/peninputgenericitut/src/peninputitutchnuimgr.cpp
branchRCL_3
changeset 50 5a1685599b76
parent 0 eb1f2e154e89
child 56 8152b1f1763a
equal deleted inserted replaced
46:bd83ceabce89 50:5a1685599b76
   348 
   348 
   349     iCurrentState = newState;
   349     iCurrentState = newState;
   350     if(DataMgr()->IsUpdate())  
   350     if(DataMgr()->IsUpdate())  
   351     	{
   351     	{
   352     	DataMgr()->SetUpdate(EFalse);
   352     	DataMgr()->SetUpdate(EFalse);
   353     	CGenericItutUiLayout* itutLayout = 
   353     	
   354 			static_cast<CGenericItutUiLayout*>( LayoutContext()->UiLayout() );
   354     	// Get the screen rect
   355 		itutLayout->SizeChanged( NULL );
   355     	TRect screenRect = DataMgr()->screenSize();
       
   356     	// If the screen is in portrait mode
       
   357     	if ( screenRect.Width() < screenRect.Height())
       
   358     		{
       
   359 			CGenericItutUiLayout* itutLayout = 
       
   360 				static_cast<CGenericItutUiLayout*>( LayoutContext()->UiLayout());
       
   361 			itutLayout->SizeChanged( NULL );
       
   362     		}
   356     	}
   363     	}
   357     
   364     
   358     iCurrentState->OnEntryL();
   365     iCurrentState->OnEntryL();
   359     }
   366     }
   360 
   367