midtitle should not be affected by MarginV

This commit is contained in:
Kylart 2018-04-17 23:23:08 +02:00
parent 3fc32611b5
commit acf568068c
1 changed files with 2 additions and 5 deletions

View File

@ -43,7 +43,8 @@ const getLine = (alignment, mV, unitY, height) => {
// Distance is taken from the bottom // Distance is taken from the bottom
result = (align.numpad[alignment][0] || 16) - offsetY result = (align.numpad[alignment][0] || 16) - offsetY
} else { } else {
result = 8 + offsetY // Should be vertically centered
result = 8
} }
return result return result
@ -67,10 +68,6 @@ export default function (subtitle, styles, info) {
const className = style.Name.replace(/\s/g, '_') const className = style.Name.replace(/\s/g, '_')
const alignment = +style.Alignment const alignment = +style.Alignment
// const alignmentToPos = align.numpad
// For position style, need to handle Margin(L|R|V),
// Alignment, Font-size, Italic, Spacing?, Underline
// First, Margins // First, Margins
const mR = +style.MarginR const mR = +style.MarginR