cssarma / flowplayer-plugins

Automatically exported from code.google.com/p/flowplayer-plugins
0 stars 0 forks source link

flowplayer.controls.js track width doesn't update on resize #34

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Resize the browser window after initializing the controlbar

What is the expected output? What do you see instead?

Progress and buffer widths, as well as the ball position should update so that 
they remain in the same ratio with track width. They don't.

What version of the product are you using? On what operating system?

flowplayer.controls.js [3.0.2], ubuntu12.04+chrome, but it is the same for any 
configuration.

Please provide any additional information below.

Quick solution is to change the code so that the widths are given in 
percentages, for example:

// progressBar.style.width = x + "px";
progressBar.style.width = 100 * (x / trackWidth) + "%";

A more robust and more correct thing to do would probably be to update things 
on resize, so that x + "px" still works.

Original issue reported on code.google.com by vidov...@gmail.com on 7 May 2012 at 7:17