Draggable / Resizable / Sortable: Supporting floating point values in style properties
|Reported by:||albanx||Owned by:|
I notice that in jquery ui for reading width, height top and other css numeric properties, parseInt is used instead of parseFloat. That causes trunkate of numbers and loose of precision.
For example if I have a resizabel div in absolute position at 48,9 top, after resize the position will change to 48.0 cause of the num function doing a parseInt of top. Example: http://jsfiddle.net/UhTvs/3/
Can I change safetly from parseInt to parseFloat? I need it for my application.
Change History (5)
comment:3 Changed 4 years ago by tj.vantoll
- Component changed from ui.resizable to ui.draggable
- Status changed from new to open
- Summary changed from jquery resizable, draggable using parseInt instead of parseFloat to Draggable / Resizable / Sortable: Supporting floating point values in style properties
- Type changed from bug to feature