body margin for composer

This commit is contained in:
Baris Soner Usakli
2014-01-20 16:50:39 -05:00
parent 94f38d0622
commit 12a5b6b4c6

View File

@@ -264,6 +264,7 @@ define(['taskbar'], function(taskbar) {
newHeight = $(window).height() - $('#header-menu').height() - 20;
}
postContainer.css('height', newHeight);
$('body').css({'margin-bottom': newHeight});
resizeSavePosition(newHeight);
}
e.preventDefault();
@@ -353,6 +354,7 @@ define(['taskbar'], function(taskbar) {
postContainer.css('visibility', 'visible')
.css('z-index', 1);
$('body').css({'margin-bottom': postContainer.css('height')});
composer.focusElements(post_uuid);
}
@@ -436,6 +438,7 @@ define(['taskbar'], function(taskbar) {
delete composer.posts[post_uuid];
composer.active = undefined;
taskbar.discard('composer', post_uuid);
$('body').css({'margin-bottom': 0});
}
}