video edit panel: handle open event
This commit is contained in:
parent
cae1875f44
commit
db3ebf7663
1 changed files with 6 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue