prevent composer from going too low

v1.18.x
psychobunny 10 years ago
parent 2a80140e70
commit daf9999a29

@ -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) + '%)');
}

Loading…
Cancel
Save