Fixed post resizing, alignment etc.

This commit is contained in:
Marcin Kurczewski
2015-03-13 20:56:12 +01:00
parent 0cf29a657a
commit 7c77c7a87b
6 changed files with 66 additions and 58 deletions

View File

@ -41,7 +41,14 @@ App.Presenters.HomePresenter = function(
if ($el.find('#post-content-target').length > 0) {
presenterManager.initPresenters([
[postContentPresenter, {post: post, $target: $el.find('#post-content-target')}]],
function() {});
function() {
var $wrapper = $el.find('.object-wrapper');
$wrapper.css({
maxWidth: $wrapper.attr('data-width') + 'px',
width: 'auto',
margin: '0 auto'});
postContentPresenter.updatePostNotesSize();
});
}
}).fail(function(response) {