diff --git a/suite/browser/navigatorOverlay.xul b/suite/browser/navigatorOverlay.xul index 94f48aeadb..748ab8296f 100644 --- a/suite/browser/navigatorOverlay.xul +++ b/suite/browser/navigatorOverlay.xul @@ -323,8 +323,16 @@ - - + + @@ -404,8 +412,15 @@ - - + + @@ -441,15 +456,40 @@ - - - - - - + + + + + + - - diff --git a/suite/browser/sessionHistoryUI.js b/suite/browser/sessionHistoryUI.js index 6edb5970e3..10728dc043 100644 --- a/suite/browser/sessionHistoryUI.js +++ b/suite/browser/sessionHistoryUI.js @@ -78,13 +78,16 @@ function FillHistoryMenu(aParent, aMenu) } break; case "go": - aParent.lastChild.hidden = (count == 0); + var startHistory = document.getElementById("startHistorySeparator"); + var endHistory = document.getElementById("endHistorySeparator"); + startHistory.hidden = (count == 0); + endHistory.hidden = (endHistory == aParent.lastChild); end = count > MAX_HISTORY_MENU_ITEMS ? count - MAX_HISTORY_MENU_ITEMS : 0; for (j = count - 1; j >= end; j--) { entry = sessionHistory.getEntryAtIndex(j, false); if (entry) - createRadioMenuItem(aParent, j, entry.title, j==index); + createRadioMenuItem(aParent, endHistory, j, entry.title, j == index); } break; } @@ -142,23 +145,23 @@ function createUBHistoryMenu( aParent ) na.setAttribute("disabled", "true"); } -function createMenuItem( aParent, aIndex, aLabel) +function createMenuItem(aParent, aIndex, aLabel) { var menuitem = document.createElement( "menuitem" ); menuitem.setAttribute( "label", aLabel ); menuitem.setAttribute( "index", aIndex ); - aParent.appendChild( menuitem ); + aParent.appendChild(menuitem); } -function createRadioMenuItem( aParent, aIndex, aLabel, aChecked) +function createRadioMenuItem(aParent, aAnchor, aIndex, aLabel, aChecked) { - var menuitem = document.createElement( "menuitem" ); - menuitem.setAttribute( "type", "radio" ); - menuitem.setAttribute( "label", aLabel ); - menuitem.setAttribute( "index", aIndex ); - if (aChecked==true) - menuitem.setAttribute( "checked", "true" ); - aParent.appendChild( menuitem ); + var menuitem = document.createElement("menuitem"); + menuitem.setAttribute("type", "radio"); + menuitem.setAttribute("label", aLabel); + menuitem.setAttribute("index", aIndex); + if (aChecked) + menuitem.setAttribute("checked", "true"); + aParent.insertBefore(menuitem, aAnchor); } function deleteHistoryItems(aParent) diff --git a/suite/common/viewZoomOverlay.xul b/suite/common/viewZoomOverlay.xul index 223da0fdb3..82df0f29f3 100644 --- a/suite/common/viewZoomOverlay.xul +++ b/suite/common/viewZoomOverlay.xul @@ -64,11 +64,23 @@ - - + + - +