1
0
mirror of https://github.com/videojs/video.js.git synced 2025-07-17 01:42:41 +02:00

Working towards getting styles to work on controls

This commit is contained in:
Steve Heffernan
2012-01-27 16:57:24 -08:00
parent 84e1f508e7
commit ca9d044ae9
5 changed files with 24 additions and 10 deletions

7
src/controls.js vendored
View File

@ -224,6 +224,7 @@ _V_.LoadingSpinner = _V_.Component.extend({
_V_.ControlBar = _V_.Component.extend({
options: {
loadEvent: "play",
components: {
"playToggle": {},
"fullscreenToggle": {},
@ -244,8 +245,6 @@ _V_.ControlBar = _V_.Component.extend({
player.addEvent("mouseover", this.proxy(this.reveal));
player.addEvent("mouseout", this.proxy(this.conceal));
this.hide();
},
createElement: function(){
@ -462,6 +461,10 @@ _V_.Slider = _V_.Component.extend({
// Move the handle from the left based on the adjected progress
handle.el.style.left = _V_.round(adjustedProgress * 100, 2) + "%";
handle.el.style.left = _V_.round(adjustedProgress * 100, 2) + "%";
_V_.log(boxWidth, handleWidth, getComputedStyle(handle.el).width)
}
// Set the new bar width