mirror of
https://github.com/moparisthebest/mail
synced 2025-02-19 20:31:48 -05:00
Fix bug that catches empty string in writer email-header auto-size directice
This commit is contained in:
parent
5dfaca7d6e
commit
c4e2f66172
@ -432,7 +432,7 @@ define(function(require) {
|
||||
scope.$watch(model, function(value) {
|
||||
var width;
|
||||
|
||||
if (value.length < 12) {
|
||||
if (!value || value.length < 12) {
|
||||
width = (14 * 8) + 'px';
|
||||
} else {
|
||||
width = ((value.length + 2) * 8) + 'px';
|
||||
|
Loading…
x
Reference in New Issue
Block a user