fixed display bug in webkit because jquery draggable automatically adds
relative positioning to objects. Overrided this behaviour.
--- a/src/js/widgets/sliceWidget.js Fri Dec 30 12:38:53 2011 +0100
+++ b/src/js/widgets/sliceWidget.js Fri Dec 30 12:39:40 2011 +0100
@@ -31,6 +31,8 @@
containment: "parent"
});
+ this.leftHandle.css("position", "absolute");
+ this.rightHandle.css("position", "absolute");
this._Popcorn.listen("IriSP.SliceWidget.position",
IriSP.wrap(this, this.positionSliceHandler));
@@ -49,24 +51,6 @@
this.rightHandle.css("left", left + width + "px");
};
-/*
-IriSP.SliceWidget.prototype.leftHandleDragged = function(event, ui) {
- var currentX = this.leftHandle.position()["left"];
-
- var parentOffset = this.selector.offset();
- var relX = event.pageX - parentOffset.left;
-
-
- var increment = this.zoneLeft - relX;
- console.log(increment);
-
- this.sliceZone.css("width", this.zoneWidth + increment);
- this.sliceZone.css("left", relX + "px");
- this.zoneLeft = relX;
- this.zoneWidth += increment;
-};
-*/
-
/** handle a dragging of the left handle */
IriSP.SliceWidget.prototype.leftHandleDragged = function(event, ui) {
var currentX = this.leftHandle.position()["left"];