Skip to content

Commit

Permalink
Merge pull request sulu#38 from alexander-schranz/develop
Browse files Browse the repository at this point in the history
Release: 0.4.1
  • Loading branch information
alexander-schranz committed May 24, 2016
2 parents a50cbad + abe1985 commit cae205d
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Resources/public/dist/components/content/list/main.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 17 additions & 4 deletions Resources/public/js/components/content/list/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,27 @@ define(['jquery'], function ($) {

return {

layout: {
content: {
width: 'fixed'
}
layout: function() {
return {
extendExisting: true,
content: {
width: 'fixed',
leftSpace: true,
rightSpace: true
}
};
},

initialize: function() {
this.render();
this.initPreview();
},

/**
* Initilize the sulu preview
*/
initPreview: function() {
this.sandbox.emit('sulu.preview.initialize', null, true);
},

/**
Expand Down

0 comments on commit cae205d

Please sign in to comment.