media-captions
Advanced tools
Comparing version 0.0.8 to 0.0.9
@@ -552,9 +552,8 @@ import { | ||
if (pos.top) { | ||
const top = pos.top / 100 * container.height; | ||
box.top = top; | ||
box.bottom = top + box.height; | ||
box.top = pos.top; | ||
box.bottom = pos.top + box.height; | ||
cueEl[POSITION_OVERRIDE] = "top"; | ||
} | ||
if (pos.bottom) { | ||
const bottom = container.height - pos.bottom / 100 * container.height; | ||
const bottom = container.height - pos.bottom; | ||
box.top = bottom - box.height; | ||
@@ -565,5 +564,5 @@ box.bottom = bottom; | ||
if (pos.left) | ||
box.left = pos.left / 100 * container.width; | ||
box.left = pos.left; | ||
if (pos.right) | ||
box.right = container.width - pos.right / 100 * container.width; | ||
box.right = container.width - pos.right; | ||
return createCSSBox(container, box); | ||
@@ -570,0 +569,0 @@ } |
@@ -552,9 +552,8 @@ import { | ||
if (pos.top) { | ||
const top = pos.top / 100 * container.height; | ||
box.top = top; | ||
box.bottom = top + box.height; | ||
box.top = pos.top; | ||
box.bottom = pos.top + box.height; | ||
cueEl[POSITION_OVERRIDE] = "top"; | ||
} | ||
if (pos.bottom) { | ||
const bottom = container.height - pos.bottom / 100 * container.height; | ||
const bottom = container.height - pos.bottom; | ||
box.top = bottom - box.height; | ||
@@ -565,5 +564,5 @@ box.bottom = bottom; | ||
if (pos.left) | ||
box.left = pos.left / 100 * container.width; | ||
box.left = pos.left; | ||
if (pos.right) | ||
box.right = container.width - pos.right / 100 * container.width; | ||
box.right = container.width - pos.right; | ||
return createCSSBox(container, box); | ||
@@ -570,0 +569,0 @@ } |
@@ -554,9 +554,8 @@ import { | ||
if (pos.top) { | ||
const top = pos.top / 100 * container.height; | ||
box.top = top; | ||
box.bottom = top + box.height; | ||
box.top = pos.top; | ||
box.bottom = pos.top + box.height; | ||
cueEl[POSITION_OVERRIDE] = "top"; | ||
} | ||
if (pos.bottom) { | ||
const bottom = container.height - pos.bottom / 100 * container.height; | ||
const bottom = container.height - pos.bottom; | ||
box.top = bottom - box.height; | ||
@@ -567,5 +566,5 @@ box.bottom = bottom; | ||
if (pos.left) | ||
box.left = pos.left / 100 * container.width; | ||
box.left = pos.left; | ||
if (pos.right) | ||
box.right = container.width - pos.right / 100 * container.width; | ||
box.right = container.width - pos.right; | ||
return createCSSBox(container, box); | ||
@@ -572,0 +571,0 @@ } |
{ | ||
"name": "media-captions", | ||
"version": "0.0.8", | ||
"version": "0.0.9", | ||
"description": "Media captions parser and renderer.", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
277931
7744