--- a/textinput/peninputgenericitut/src/peninputitutwesternuimgr.cpp Tue Sep 14 21:59:06 2010 +0300
+++ b/textinput/peninputgenericitut/src/peninputitutwesternuimgr.cpp Wed Sep 15 12:34:44 2010 +0300
@@ -127,9 +127,16 @@
if(DataMgr()->IsUpdate())
{
DataMgr()->SetUpdate(EFalse);
- CGenericItutUiLayout* itutLayout =
- static_cast<CGenericItutUiLayout*>( LayoutContext()->UiLayout() );
- itutLayout->SizeChanged( NULL );
+
+ // Get the screen rect
+ TRect screenRect = DataMgr()->screenSize();
+ // If the screen is in portrait mode
+ if ( screenRect.Width() < screenRect.Height())
+ {
+ CGenericItutUiLayout* itutLayout =
+ static_cast<CGenericItutUiLayout*>( LayoutContext()->UiLayout());
+ itutLayout->SizeChanged( NULL );
+ }
}
iCurrentState->OnEntryL();
}