mirror of https://github.com/Kylart/KawAnime.git
midtitle should not be affected by MarginV
This commit is contained in:
parent
3fc32611b5
commit
acf568068c
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue