Commit 73c3ab054f0fd65bbee61b9f703eaf2e489b9dbd
Don't change composer height if it has text in it
Charles Lehner committed on 9/9/2016, 4:20:10 PMParent: 4689a245257fb4fbdda64f8199082f40541fdee4
Files changed
modules/compose.js | changed |
modules/compose.js | ||
---|---|---|
@@ -27,9 +27,11 @@ | ||
27 | 27 | |
28 | 28 | var blur |
29 | 29 | ta.addEventListener('focus', function () { |
30 | 30 | clearTimeout(blur) |
31 | - ta.style.height = '200px' | |
31 | + if(!ta.value) { | |
32 | + ta.style.height = '200px' | |
33 | + } | |
32 | 34 | accessories.style.display = 'block' |
33 | 35 | }) |
34 | 36 | ta.addEventListener('blur', function () { |
35 | 37 | //don't shrink right away, so there is time |
Built with git-ssb-web