In my case those decimals make difference. But thank you anyway for your reply @Dormilich .
I've managed to solve my problem.
User Profile
Collapse
-
Internet Explorer strips decimals
I have the following problem with IE when making calculations with floating-point numbers.
For instance, I have a div, which width is 150px and length 150px. I am subtracting say 15.787754565454 64 from its width.
All major browsers return 134.21224543454 537 px, but IE returns 134.21. Internet Explorer removes all the...Code:div.style.width = (parseFloat(div.style.width) - 15.78775456545464) + "px";
-
User999 started a topic Determine target's offsetY or layerY when dragging element over that target in javascin JavascriptDetermine target's offsetY or layerY when dragging element over that target in javasc
How to determine target's offsetY or layerY when the element is being dragged over that target.Last edited by NeoPa; Feb 5 '12, 04:14 PM. Reason: Added mandatory [CODE] tags for you and reworded request more politely.
No activity results to display
Show More
Leave a comment: