From 85aa96cd54dadbc974bd1d44f15a8743c588c733 Mon Sep 17 00:00:00 2001 From: ydong10 Date: Wed, 16 Nov 2011 05:09:36 +0000 Subject: [PATCH] Update select highlight menu logic when opcode is date/time Signed-off-by: ydong10 Reviewed-by: lgao4 git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12720 6f19259b-4bc3-4df7-8a09-765794883524 --- MdeModulePkg/Universal/SetupBrowserDxe/Ui.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/MdeModulePkg/Universal/SetupBrowserDxe/Ui.c b/MdeModulePkg/Universal/SetupBrowserDxe/Ui.c index 4dd439521e..baf36a213b 100644 --- a/MdeModulePkg/Universal/SetupBrowserDxe/Ui.c +++ b/MdeModulePkg/Universal/SetupBrowserDxe/Ui.c @@ -2484,6 +2484,10 @@ UiDisplayMenu ( } if (Link != NewPos || Index > BottomRow || (Link == NewPos && SavedMenuOption->Row + SavedMenuOption->Skip - 1 > BottomRow)) { + // + // Find the MenuOption which has the skip value for Date/Time opcode. + // + AdjustDateAndTimePosition(FALSE, &NewPos); // // NewPos is not in the current page, simply scroll page so that NewPos is in the end of the page //