discovered a bug in jqueryui. wontfix. popcorn-port
authorhamidouk
Fri, 03 Feb 2012 15:30:56 +0100
branchpopcorn-port
changeset 772 feb3e5194502
parent 771 0a5194b39ffb
child 773 b284013327fd
discovered a bug in jqueryui. wontfix.
src/js/widgets/sliceWidget.js
--- a/src/js/widgets/sliceWidget.js	Fri Feb 03 15:11:03 2012 +0100
+++ b/src/js/widgets/sliceWidget.js	Fri Feb 03 15:30:56 2012 +0100
@@ -23,18 +23,20 @@
 
   var left = this.selector.offset().left;
   var top = this.selector.offset().top;
-  
+
   // contain the handles correctly - we cannot set
   // containment: parent because it wouldn't allow to select the 
   // whole slice, so we have to compute a box in which the slice is
   // allowed to move.
   var containment = [left - 8, top, this.selector.width() + left, top];
+  // var containment = [left - 16, top, this.selector.width() + left - 8, top];
   this.leftHandle.draggable({axis: "x",
   drag: IriSP.wrap(this, this.leftHandleDragged),  
   containment: containment
   });
 
   containment = [left, top, this.selector.width() + left, top];
+  // containment = [left, top, this.selector.width() + left - 8, top];
   this.rightHandle.draggable({axis: "x",
   drag: IriSP.wrap(this, this.rightHandleDragged),    
   containment: containment