diff --git a/static/js/views/EventCollectionView.js b/static/js/views/EventCollectionView.js index d884731..df7016e 100644 --- a/static/js/views/EventCollectionView.js +++ b/static/js/views/EventCollectionView.js @@ -18,8 +18,11 @@ define('views/EventCollectionView', ["Backbone", "config", "jquery", "views/Base var newsTable = $(this.el).find('.js_news'); newsTableBody.empty(); - newsTable.css('height', 'calc(90% - ' + ($('.free-rooms').outerHeight() + 38 + 100) + 'px)'); - newsTable.css('margin-bottom', '0'); + /* FIXME: hack damit das bei split nicht benutzt wird! hier wäre besseres CSS besser. */ + if (document.location.toString().indexOf('split.html') === -1) { + newsTable.css('height', 'calc(90% - ' + ($('.free-rooms').outerHeight() + 38 + 100) + 'px)'); + newsTable.css('margin-bottom', '0'); + } eventsCollection.forEach(function(event) { var view = new EventView({"model": event, "tagName": "tr"});