diff --git a/source/Ox.UI/js/Video/VideoEditPanel.js b/source/Ox.UI/js/Video/VideoEditPanel.js index bbcc5f82..1ef8c90f 100644 --- a/source/Ox.UI/js/Video/VideoEditPanel.js +++ b/source/Ox.UI/js/Video/VideoEditPanel.js @@ -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;