video edit panel: handle open event

This commit is contained in:
rlx 2013-07-14 15:13:46 +00:00
parent cae1875f44
commit db3ebf7663

View file

@ -241,7 +241,8 @@ Ox.VideoEditPanel = function(options, self) {
that.triggerEvent('move', data);
},
open: function(data) {
// ...
setPosition(getClipById(data.ids[0])['position']);
that.triggerEvent('open', data);
},
paste: function() {
that.triggerEvent('paste');
@ -291,6 +292,10 @@ Ox.VideoEditPanel = function(options, self) {
that.triggerEvent('position', {position: self.options.position});
}
function getClipById(id) {
return Ox.getObjectById(self.options.clips, id);
}
function getPlayerHeight() {
return self.options.height - 24
- self.options.showTimeline * 80 - 1;