partial fix for subtitles disappearing in fullscreen

This commit is contained in:
rolux 2011-05-17 23:43:03 +02:00
parent 1e826a8c53
commit 3dd022977d

View file

@ -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, '<br/>')
.replace(/\n/g, '<br/>') : '&nbsp;<br/>&nbsp;' // fixme: weird fullscreen bug
);
Ox.print('?!?', self.$subtitle.css('bottom'), self.$subtitle.height())
}
function changeVolumeBy(num) {