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
|
||||
result = (align.numpad[alignment][0] || 16) - offsetY
|
||||
} else {
|
||||
result = 8 + offsetY
|
||||
// Should be vertically centered
|
||||
result = 8
|
||||
}
|
||||
|
||||
return result
|
||||
|
@ -67,10 +68,6 @@ export default function (subtitle, styles, info) {
|
|||
const className = style.Name.replace(/\s/g, '_')
|
||||
|
||||
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
|
||||
const mR = +style.MarginR
|
||||
|
|
Loading…
Reference in New Issue