Hello.
I am using the AjaxControlToolkit v.15.1.3 in a Webform application and have som problems with that Doc.body.scrollTop dont always return an integer. The browser im using is Chrome Version 45.0.2454.101 m
Location of error:
![Image](http://s12.postimg.org/5bda1cch9/Pos_Of_Error_2.png)
Error message:
![Image](http://s24.postimg.org/pd7w3yo9x/Error_Message.png)
This is where the code crashes:
``` C#
var ex, ownerDoc = element.ownerDocument, documentElement = ownerDoc.documentElement,
offsetX = Math.round(clientRect.left) + (documentElement.scrollLeft || (ownerDoc.body ownerDoc.body.scrollLeft : 0)),
offsetY = Math.round(clientRect.top) + (documentElement.scrollTop || (ownerDoc.body ? ownerDoc.body.scrollTop : 0));
```
I think one solution for this is to move the parenthesis so you wrap all the statments with Math.round()
``` C#
var ex, ownerDoc = element.ownerDocument, documentElement = ownerDoc.documentElement,
offsetX = Math.round(clientRect.left + (documentElement.scrollLeft || (ownerDoc.body ownerDoc.body.scrollLeft : 0))),
offsetY = Math.round(clientRect.top + (documentElement.scrollTop || (ownerDoc.body ? ownerDoc.body.scrollTop : 0)));
```
Best regard, Patrik Ericsson
I am using the AjaxControlToolkit v.15.1.3 in a Webform application and have som problems with that Doc.body.scrollTop dont always return an integer. The browser im using is Chrome Version 45.0.2454.101 m
Location of error:
![Image](http://s12.postimg.org/5bda1cch9/Pos_Of_Error_2.png)
Error message:
![Image](http://s24.postimg.org/pd7w3yo9x/Error_Message.png)
This is where the code crashes:
``` C#
var ex, ownerDoc = element.ownerDocument, documentElement = ownerDoc.documentElement,
offsetX = Math.round(clientRect.left) + (documentElement.scrollLeft || (ownerDoc.body ownerDoc.body.scrollLeft : 0)),
offsetY = Math.round(clientRect.top) + (documentElement.scrollTop || (ownerDoc.body ? ownerDoc.body.scrollTop : 0));
```
I think one solution for this is to move the parenthesis so you wrap all the statments with Math.round()
``` C#
var ex, ownerDoc = element.ownerDocument, documentElement = ownerDoc.documentElement,
offsetX = Math.round(clientRect.left + (documentElement.scrollLeft || (ownerDoc.body ownerDoc.body.scrollLeft : 0))),
offsetY = Math.round(clientRect.top + (documentElement.scrollTop || (ownerDoc.body ? ownerDoc.body.scrollTop : 0)));
```
Best regard, Patrik Ericsson