1
0
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:
Tankred Hase 2014-06-17 17:22:56 +02:00
parent 5dfaca7d6e
commit c4e2f66172

View File

@ -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';