add OxFullscreen class to video player
This commit is contained in:
parent
bfac98643d
commit
fea1eed168
2 changed files with 2 additions and 1 deletions
|
@ -243,7 +243,6 @@ Ox.VideoElement = function(options, self) {
|
|||
self.video.pause();
|
||||
self.video.currentTime = 0;
|
||||
}
|
||||
Ox.print('?????', self.items[self.currentItem].$videos)
|
||||
self.$video = self.items[self.currentItem].$videos[part].css(css).show();
|
||||
self.video = self.$video[0];
|
||||
!self.paused && self.video.play();
|
||||
|
|
|
@ -2037,6 +2037,7 @@ Ox.VideoPlayer = function(options, self) {
|
|||
top: self.absoluteOffset.top - parentOffset.top
|
||||
};
|
||||
that.detach()
|
||||
.addClass('OxFullscreen')
|
||||
.css({
|
||||
left: self.absoluteOffset.left + 'px',
|
||||
top: self.absoluteOffset.top + 'px',
|
||||
|
@ -2075,6 +2076,7 @@ Ox.VideoPlayer = function(options, self) {
|
|||
setSizes(function() {
|
||||
self.exitFullscreen = false;
|
||||
that.detach()
|
||||
.removeClass('OxFullscreen')
|
||||
.css({
|
||||
left: self.relativeOffset.left + 'px',
|
||||
top: self.relativeOffset.top + 'px',
|
||||
|
|
Loading…
Reference in a new issue