From 81ec203ef7f09342019a1565915355325e381b3a Mon Sep 17 00:00:00 2001 From: Felix Niklas Date: Wed, 25 Nov 2015 10:25:42 +0100 Subject: [PATCH] overviews: fix auto tab width in FF --- .../javascripts/app/controllers/ticket_overview.coffee | 5 +++-- .../app/views/agent_ticket_view/navbar_vertical.jst.eco | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/app/assets/javascripts/app/controllers/ticket_overview.coffee b/app/assets/javascripts/app/controllers/ticket_overview.coffee index 10e5eaac2..47f68bb59 100644 --- a/app/assets/javascripts/app/controllers/ticket_overview.coffee +++ b/app/assets/javascripts/app/controllers/ticket_overview.coffee @@ -78,7 +78,6 @@ class App.TicketOverview extends App.Controller class Navbar extends App.Controller elements: - '.js-tabsHolder': 'tabsHolder' '.js-tabsClone': 'clone' '.js-tabClone': 'tabClone' '.js-tabs': 'tabs' @@ -130,7 +129,9 @@ class Navbar extends App.Controller items: items isAgent: @isRole('Agent') - while @clone.width() > @tabsHolder.width() + console.log @el.width(), @clone.width() + + while @clone.width() > @el.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 c005f1001..8ad46466d 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 @@ -
+
<% if @items: %> <% for item in @items: %>