in edits, handle 'add to clipboard'; resize clip list on window resize

This commit is contained in:
rlx 2013-07-15 10:04:56 +00:00
parent 27bbbdbd83
commit c6c3452853
2 changed files with 8 additions and 4 deletions

View file

@ -28,6 +28,9 @@ Ox.ClipPanel = function(options, self) {
updateStatus();
},
duration: updateStatus,
height: function() {
self.$list.size();
},
sort: function() {
updateSortElement();
self.$list.options({
@ -255,8 +258,8 @@ Ox.ClipPanel = function(options, self) {
copy: function(data) {
that.triggerEvent('copy', data);
},
cut: function(data) {
that.triggerEvent('cut', data);
copyadd: function(data) {
that.triggerEvent('copyadd', data);
},
'delete': function(data) {
that.triggerEvent('remove', data);

View file

@ -58,6 +58,7 @@ Ox.VideoEditPanel = function(options, self) {
},
height: function() {
self.$video.options({height: getPlayerHeight()});
self.$clipPanel.options({height: self.options.height});
},
'in': function() {
setPoint('in', self.options['in']);
@ -254,8 +255,8 @@ Ox.VideoEditPanel = function(options, self) {
copy: function(data) {
that.triggerEvent('copy', data);
},
cut: function(data) {
that.triggerEvent('cut', data);
copyadd: function(data) {
that.triggerEvent('copyadd', data);
},
edit: function(data) {
that.triggerEvent('edit', data);