From 892dead1c849e8932b94e3986b5b5585bc448dff Mon Sep 17 00:00:00 2001 From: Kevin Grandon Date: Sat, 17 Oct 2015 14:50:02 -0700 Subject: [PATCH] Bug 1202543 - [Browser] Add wrapping span around last button to fix background r=kgrandon --- apps/system/js/context_menu_view.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apps/system/js/context_menu_view.js b/apps/system/js/context_menu_view.js index a5f4a0f0c8c9..a215c24777f0 100644 --- a/apps/system/js/context_menu_view.js +++ b/apps/system/js/context_menu_view.js @@ -124,7 +124,10 @@ this.elements.list.appendChild(action); }, this); - this.elements.list.appendChild(this.elements.cancel); + var lastButtonWrapper = document.createElement('span'); + lastButtonWrapper.className = 'last-button-container'; + this.elements.list.appendChild(lastButtonWrapper); + lastButtonWrapper.appendChild(this.elements.cancel); }; ContextMenuView.prototype.focus = function() {