From 3dd022977d3e439aa6f1084f01f1296b8fad2a8b Mon Sep 17 00:00:00 2001 From: rolux Date: Tue, 17 May 2011 23:43:03 +0200 Subject: [PATCH] partial fix for subtitles disappearing in fullscreen --- source/Ox.UI/js/Video/Ox.VideoPlayer.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source/Ox.UI/js/Video/Ox.VideoPlayer.js b/source/Ox.UI/js/Video/Ox.VideoPlayer.js index a12a39f7..f76f0876 100644 --- a/source/Ox.UI/js/Video/Ox.VideoPlayer.js +++ b/source/Ox.UI/js/Video/Ox.VideoPlayer.js @@ -1645,9 +1645,11 @@ Ox.VideoPlayer = function(options, self) { function setSubtitleText() { Ox.print('setSubTx', self.subtitle, self.options.find) self.$subtitle.html( + self.subtitle ? Ox.highlight(self.subtitle, self.options.find, 'OxHighlight') - .replace(/\n/g, '
') + .replace(/\n/g, '
') : ' 
 ' // fixme: weird fullscreen bug ); + Ox.print('?!?', self.$subtitle.css('bottom'), self.$subtitle.height()) } function changeVolumeBy(num) {