overviews: fix auto tab width in FF
This commit is contained in:
parent
033ab869fe
commit
81ec203ef7
2 changed files with 4 additions and 3 deletions
|
@ -78,7 +78,6 @@ class App.TicketOverview extends App.Controller
|
||||||
|
|
||||||
class Navbar extends App.Controller
|
class Navbar extends App.Controller
|
||||||
elements:
|
elements:
|
||||||
'.js-tabsHolder': 'tabsHolder'
|
|
||||||
'.js-tabsClone': 'clone'
|
'.js-tabsClone': 'clone'
|
||||||
'.js-tabClone': 'tabClone'
|
'.js-tabClone': 'tabClone'
|
||||||
'.js-tabs': 'tabs'
|
'.js-tabs': 'tabs'
|
||||||
|
@ -130,7 +129,9 @@ class Navbar extends App.Controller
|
||||||
items: items
|
items: items
|
||||||
isAgent: @isRole('Agent')
|
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')
|
@tabClone.not('.hide').last().addClass('hide')
|
||||||
@tab.not('.hide').last().addClass('hide')
|
@tab.not('.hide').last().addClass('hide')
|
||||||
@dropdownItem.filter('.hide').last().removeClass('hide')
|
@dropdownItem.filter('.hide').last().removeClass('hide')
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
<div class="tabsHolder js-tabsHolder">
|
<div class="tabsHolder">
|
||||||
<div class="tabs tabs--inline tabs--big js-tabs">
|
<div class="tabs tabs--inline tabs--big js-tabs">
|
||||||
<% if @items: %>
|
<% if @items: %>
|
||||||
<% for item in @items: %>
|
<% for item in @items: %>
|
||||||
|
|
Loading…
Reference in a new issue