in Ox.VideoPanel, use setElement(...), not that. = ...

This commit is contained in:
rlx 2012-04-17 07:51:32 +00:00
parent 79fb1fb968
commit c6f0308a17

View file

@ -262,7 +262,8 @@ Ox.VideoPanel = function(options, self) {
});
});
that.$element = Ox.SplitPanel({
that.setElement(
Ox.SplitPanel({
elements: [
{
element: self.$videoPanel
@ -278,7 +279,8 @@ Ox.VideoPanel = function(options, self) {
}
],
orientation: 'horizontal'
});
})
);
function changeTimeline(data) {
self.options.position = data.position;
@ -308,8 +310,8 @@ Ox.VideoPanel = function(options, self) {
function getTimelineWidth() {
return self.options.width -
(self.options.showAnnotations && !self.fullscreen) *
self.options.annotationsSize - 16 - 1;
(self.options.showAnnotations && !self.fullscreen)
* self.options.annotationsSize - 16 - 1;
}
function resizeAnnotations(data) {