Update layout.

This commit is contained in:
Lars Jung 2014-11-29 21:32:30 +01:00
parent b390b9fc42
commit 60b81a46ea
29 changed files with 136 additions and 355 deletions

View file

@ -19,11 +19,7 @@ modulejs.define('view/viewmode', ['_', '$', 'core/settings', 'core/resource', 'c
function adjustSpacing() {
var contentWidth = $('#content').width();
var $view = $('#view');
var itemWidth = ($view.hasClass('view-icons') || $view.hasClass('view-grid')) ? ($view.find('.item').eq(0).outerWidth(true) || 1) : 1;
$view.width(Math.floor(contentWidth / itemWidth) * itemWidth + 4);
// kept here for later use
}
function update(mode, size) {