make video editor accept position option

This commit is contained in:
rlx 2011-08-16 13:29:16 +00:00
parent d21068979a
commit 6f64ad3512
2 changed files with 1 additions and 2 deletions

View file

@ -993,7 +993,7 @@ Ox.VideoEditor = function(options, self) {
Ox.print('XXXX setSizes', key, value, self.options.width, self.options.height) Ox.print('XXXX setSizes', key, value, self.options.width, self.options.height)
setSizes(); setSizes();
} else if (key == 'position') { } else if (key == 'position') {
self.$player[0].position(value); setPosition(value);
} }
}; };

View file

@ -99,7 +99,6 @@ Ox.VideoPreview = function(options, self) {
if (key == 'frameHeight') { if (key == 'frameHeight') {
self.$frame.css({height: value + 'px'}); self.$frame.css({height: value + 'px'});
} else if (key == 'frameWidth') { } else if (key == 'frameWidth') {
Ox.print('PREVIEW WIDTH', value);
self.$frame.attr({src: self.options.getFrame()}) self.$frame.attr({src: self.options.getFrame()})
.css({width: value + 'px'}); .css({width: value + 'px'});
self.$timeline.css({width: value + 'px'}); self.$timeline.css({width: value + 'px'});