diff -r 08ffbd51e3fd -r 3154c14a33db browserui/browser/FavouritesSrc/BrowserAdaptiveListPopup.cpp --- a/browserui/browser/FavouritesSrc/BrowserAdaptiveListPopup.cpp Tue May 11 16:16:13 2010 +0300 +++ b/browserui/browser/FavouritesSrc/BrowserAdaptiveListPopup.cpp Tue May 25 12:45:31 2010 +0300 @@ -56,7 +56,8 @@ _LIT( KProtocolIdentifier,"://" ); const TUint KSlash('/'); const TUint KPeriod('.'); -const TInt KListHeight = 45; +const TInt KListHeight = 36; +const TInt KLandscapeListItems = 5; const TInt KFontHeight = 150; static void TextPos(TPoint *aResultArray, const TAknTextLineLayout @@ -576,8 +577,15 @@ iItemNamesToShow->AppendL( buf ); } //set how many item will be shown + +#ifdef BRDO_TOUCH_ENABLED_FF + TInt appWidth = iEikonEnv->EikAppUi()->ApplicationRect().Width(); + TInt appHeight = iEikonEnv->EikAppUi()->ApplicationRect().Height(); + //For landscape mode only 5 items can be shown on the screen + if(appWidth > appHeight) + iMaxRecentUrlsToShow = KLandscapeListItems; +#endif TInt itemstoshow; - if ( k > iMaxRecentUrlsToShow) { itemstoshow = iMaxRecentUrlsToShow; @@ -586,7 +594,9 @@ { itemstoshow = k; } - + //resetting to original value + iMaxRecentUrlsToShow = CBrowserAppUi::Static()->ContentView()->ApiProvider().Preferences().MaxRecentUrls(); + //set the main rect of the window // fixing bug RFON-7E2PPV, don't use ApplicationRect() TRect rect;