From d0d1b942288ced767533e19eb8d7f8862b88fb5a Mon Sep 17 00:00:00 2001 From: rlx <0x0073@0x2620.org> Date: Fri, 19 Aug 2011 18:42:44 +0000 Subject: [PATCH] fix video panel player resize bug --- source/Ox.UI/js/Video/Ox.SmallVideoTimelineImage.js | 1 + source/Ox.UI/js/Video/Ox.VideoPanelPlayer.js | 2 +- source/Ox.UI/js/Video/Ox.VideoPlayer.js | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/source/Ox.UI/js/Video/Ox.SmallVideoTimelineImage.js b/source/Ox.UI/js/Video/Ox.SmallVideoTimelineImage.js index 9162905e..78b27dff 100644 --- a/source/Ox.UI/js/Video/Ox.SmallVideoTimelineImage.js +++ b/source/Ox.UI/js/Video/Ox.SmallVideoTimelineImage.js @@ -107,6 +107,7 @@ Ox.SmallVideoTimelineImage = function(options, self) { height: height })[0], context = canvas.getContext('2d'), + Ox.print('WIDTH/HEIGHT', width, height) imageData = context.createImageData(width, height), data = imageData.data; if (image == 'results') { diff --git a/source/Ox.UI/js/Video/Ox.VideoPanelPlayer.js b/source/Ox.UI/js/Video/Ox.VideoPanelPlayer.js index 2ad84657..42c095ea 100644 --- a/source/Ox.UI/js/Video/Ox.VideoPanelPlayer.js +++ b/source/Ox.UI/js/Video/Ox.VideoPanelPlayer.js @@ -245,7 +245,7 @@ Ox.VideoPanelPlayer = function(options, self) { self.$video.options({ width: getPlayerWidth() }); - self.$timeline.opitions({ + self.$timeline.options({ width: getTimelineWidth() }); } diff --git a/source/Ox.UI/js/Video/Ox.VideoPlayer.js b/source/Ox.UI/js/Video/Ox.VideoPlayer.js index ff967af4..e6ca5dcb 100644 --- a/source/Ox.UI/js/Video/Ox.VideoPlayer.js +++ b/source/Ox.UI/js/Video/Ox.VideoPlayer.js @@ -1647,6 +1647,7 @@ Ox.VideoPlayer = function(options, self) { }); setSize(self.$spaceBottom, getCSS('spaceBottom'), animate); setSize(self.$find, getCSS('find'), animate, function() { + Ox.print('FIND......', Math.min(128, self.width - 80)) self.$findInput.options({ width: Math.min(128, self.width - 80) });