mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-03-20 21:37:27 +00:00
floating point suntitle size allowed
This commit is contained in:
parent
239b4ce1cf
commit
ab8df39f87
1 changed files with 2 additions and 2 deletions
|
|
@ -66,7 +66,7 @@ var HTMLVideo = function(container) {
|
|||
return selectedSubtitleTrackId;
|
||||
}
|
||||
function getSubtitleSize() {
|
||||
return parseInt(styles.sheet.cssRules[subtitleStylesIndex].style.fontSize);
|
||||
return parseFloat(styles.sheet.cssRules[subtitleStylesIndex].style.fontSize);
|
||||
}
|
||||
function onEnded() {
|
||||
events.emit('ended');
|
||||
|
|
@ -248,7 +248,7 @@ var HTMLVideo = function(container) {
|
|||
break;
|
||||
case 'subtitleSize':
|
||||
if (!isNaN(arguments[2])) {
|
||||
styles.sheet.cssRules[subtitleStylesIndex].style.fontSize = parseInt(arguments[2]) + 'px';
|
||||
styles.sheet.cssRules[subtitleStylesIndex].style.fontSize = parseFloat(arguments[2]) + 'px';
|
||||
onSubtitleSizeChanged();
|
||||
}
|
||||
return;
|
||||
|
|
|
|||
Loading…
Reference in a new issue