From bc694b7b6f459a15fa3bf365f24212985d0adefa Mon Sep 17 00:00:00 2001 From: Jonathan Grimes Date: Thu, 20 Apr 2017 16:09:32 -0500 Subject: [PATCH] Fix #364 Use the default value for line if set, otherwise use 'auto'. --- lib/vtt.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/vtt.js b/lib/vtt.js index 66ab23f..180a969 100644 --- a/lib/vtt.js +++ b/lib/vtt.js @@ -266,7 +266,7 @@ // Apply default values for any missing fields. cue.region = settings.get("region", null); cue.vertical = settings.get("vertical", ""); - cue.line = settings.get("line", "auto"); + cue.line = settings.get("line", cue.line || "auto"); cue.lineAlign = settings.get("lineAlign", "start"); cue.snapToLines = settings.get("snapToLines", true); cue.size = settings.get("size", 100);