prevent composer from going too low

This commit is contained in:
psychobunny
2015-03-10 13:53:44 -04:00
parent 2a80140e70
commit daf9999a29

View File

@@ -22,6 +22,10 @@ define('composer/resize', function() {
postContainer.percentage = percentage;
if (percentage) {
if (percentage < 0.25) {
percentage = 0.25;
}
if (env === 'md' || env === 'lg') {
postContainer.css('transform', 'translate(0, ' + (Math.abs(1-percentage) * 100) + '%)');
}