WIP slicewidget-redo
authorhamidouk
Mon, 06 Feb 2012 11:49:54 +0100
branchslicewidget-redo
changeset 781 d27d429597f4
parent 780 2ae03b1d2797
child 847 17c5a366a243
WIP
src/css/LdtPlayer.css
src/js/widgets/sliceWidget.js
--- a/src/css/LdtPlayer.css	Mon Feb 06 11:37:48 2012 +0100
+++ b/src/css/LdtPlayer.css	Mon Feb 06 11:49:54 2012 +0100
@@ -594,7 +594,7 @@
   background:url('imgs/left_handle.gif') no-repeat scroll transparent;
   z-index: 2;
   margin-top: -12px;
-  left: -7px;
+  right: 0;
 }
 
 .Ldt-sliceRightHandle div {
--- a/src/js/widgets/sliceWidget.js	Mon Feb 06 11:37:48 2012 +0100
+++ b/src/js/widgets/sliceWidget.js	Mon Feb 06 11:49:54 2012 +0100
@@ -88,10 +88,10 @@
   }
 
   this.zoneWidth = rightHandleX - Math.floor(ui.position.left) - 7;  
-  this.zoneLeft = Math.floor(ui.position.left) + 8;
+  this.zoneLeft = Math.floor(ui.position.left);
   
-  this.sliceZone.css("width", this.zoneWidth);
-  this.sliceZone.css("left", this.zoneLeft + "px");
+  this.sliceZone.css("width", this.zoneWidth + "px");
+  this.sliceZone.css("left", (this.zoneLeft + 7) + "px");
   
   this._leftHandleOldLeft = ui.position.left;  
   this.broadcastChanges();