From 26ebd904834d0e0da4506c161142bc78a8abe3b9 Mon Sep 17 00:00:00 2001 From: j Date: Mon, 17 Apr 2017 18:15:05 +0200 Subject: [PATCH] update inner width, trigger clipSize not size --- source/UI/js/Video/ClipPanel.js | 5 +++++ source/UI/js/Video/VideoEditPanel.js | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/source/UI/js/Video/ClipPanel.js b/source/UI/js/Video/ClipPanel.js index d61f79dc..3776b332 100644 --- a/source/UI/js/Video/ClipPanel.js +++ b/source/UI/js/Video/ClipPanel.js @@ -75,6 +75,11 @@ Ox.ClipPanel = function(options, self) { view: function() { updateView(); self.$menu.checkItem(self.options.view); + }, + width: function() { + self.$list.options({ + width: self.options.width + }); } }) .bindEvent({ diff --git a/source/UI/js/Video/VideoEditPanel.js b/source/UI/js/Video/VideoEditPanel.js index 4dc06243..2705368e 100644 --- a/source/UI/js/Video/VideoEditPanel.js +++ b/source/UI/js/Video/VideoEditPanel.js @@ -604,7 +604,7 @@ Ox.VideoEditPanel = function(options, self) { } function resizeendClips(data) { - that.triggerEvent('size', data.size); + that.triggerEvent('clipSize', data); } function setPoint(point, position, triggerEvent) {