on mobile, resize composer textarea as you type so it doesn't constrain the editable view

v1.18.x
psychobunny 10 years ago
parent 5e3a990f2d
commit 31368ac974

@ -3,7 +3,7 @@
/* globals app, define, config, utils*/
define('composer/resize', function() {
define('composer/resize', ['autosize'], function(autosize) {
var resize = {},
oldPercentage = 0,
env;
@ -35,6 +35,8 @@ define('composer/resize', function() {
// at this point we should use modernizr
if (env === 'sm' || env === 'xs' || window.innerHeight < 480) {
$('html').addClass('composing mobile');
postContainer.percentage = 1;
autosize(postContainer.find('textarea')[0]);
}
if (config.hasImageUploadPlugin) {

Loading…
Cancel
Save