dynamic tab size in admin editor (all tabs are placed along the same line)

This commit is contained in:
ilvalle
2013-10-24 09:48:03 +02:00
parent 290cb2f1a7
commit 94ddb6c11f
4 changed files with 28 additions and 3 deletions
@@ -59,6 +59,10 @@ $(document).on('shown click', 'a[data-toggle="tab"]', function (e) {
editor.setSize($(tab_id).width(), $(tab_id).height());
editor.refresh();
}
var n_li = $('#filesTab li').length;
$.each($('#filesTab li'), function(index, element) {
$(element).css('max-width', 100/n_li + '%' );
});
//$(function(){$('.CodeMirror-scroll').css("height","auto").css("overflow-x","auto");});
});