diff --git a/app/assets/javascripts/app/controllers/ticket_overview.coffee b/app/assets/javascripts/app/controllers/ticket_overview.coffee index 47f68bb59..10e5eaac2 100644 --- a/app/assets/javascripts/app/controllers/ticket_overview.coffee +++ b/app/assets/javascripts/app/controllers/ticket_overview.coffee @@ -78,6 +78,7 @@ class App.TicketOverview extends App.Controller class Navbar extends App.Controller elements: + '.js-tabsHolder': 'tabsHolder' '.js-tabsClone': 'clone' '.js-tabClone': 'tabClone' '.js-tabs': 'tabs' @@ -129,9 +130,7 @@ class Navbar extends App.Controller items: items isAgent: @isRole('Agent') - console.log @el.width(), @clone.width() - - while @clone.width() > @el.width() + while @clone.width() > @tabsHolder.width() @tabClone.not('.hide').last().addClass('hide') @tab.not('.hide').last().addClass('hide') @dropdownItem.filter('.hide').last().removeClass('hide') diff --git a/app/assets/javascripts/app/views/agent_ticket_view/navbar_vertical.jst.eco b/app/assets/javascripts/app/views/agent_ticket_view/navbar_vertical.jst.eco index 8ad46466d..c005f1001 100644 --- a/app/assets/javascripts/app/views/agent_ticket_view/navbar_vertical.jst.eco +++ b/app/assets/javascripts/app/views/agent_ticket_view/navbar_vertical.jst.eco @@ -1,4 +1,4 @@ -