From 945b1fc93bdd532abbdeb1f69878404220c59379 Mon Sep 17 00:00:00 2001
From: Jared Hancock <jared.hancock@cleco.com>
Date: Thu, 29 Dec 2016 09:21:49 -0600
Subject: [PATCH] queue: Fix navigation bar spacing always on right

This fixes an issue where spacing is reserved on the navigation bar on the
right side for an overflow menu, even if the overflow menu is not visible (not
necessary).
---
 scp/css/scp.css            | 2 +-
 scp/js/jb.overflow.menu.js | 3 ++-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/scp/css/scp.css b/scp/css/scp.css
index 725c169b9..22b78ce32 100644
--- a/scp/css/scp.css
+++ b/scp/css/scp.css
@@ -770,7 +770,6 @@ a time {
     top: 0;
     border-bottom: 1px solid #bebebe;
     border-left:1px solid #bebebe;
-    border-right: 1px solid #aaa;
     background-color: #eee;
 }
 
@@ -786,6 +785,7 @@ a time {
     color:#666;
     padding:9px;
     background-color:#eee;
+    border-right: 1px solid #aaa;
 }
 .jb-overflowmenu .jb-overflowmenu-container > a.jb-overflowmenu-menu-secondary-handle:hover {
     color:#000;
diff --git a/scp/js/jb.overflow.menu.js b/scp/js/jb.overflow.menu.js
index bfa365833..173407364 100755
--- a/scp/js/jb.overflow.menu.js
+++ b/scp/js/jb.overflow.menu.js
@@ -156,6 +156,7 @@ $.widget( "jb.overflowmenu", {
         if( this.secondaryMenu.find( this.options.items ).length == 0){
             return;
         }
+        this.primaryMenu.css( 'right',  this.primaryMenu.data( 'right' ) )
         this.secondaryMenu.show();
         this._trigger( 'open', {}, this._uiHash() );
         return this;
@@ -207,7 +208,7 @@ $.widget( "jb.overflowmenu", {
             var width = this.secondaryMenuContainer.find('.jb-overflowmenu-menu-secondary-handle')
                         .html( value )
                         .outerWidth();
-            this.primaryMenu.css( 'right',  width )
+            this.primaryMenu.data( 'right',  width )
 
         }
 
-- 
GitLab