Hi All,
In my previous post we fixed issue of AjaxToolKit ModalPopUpExtender in IE 7.0.
Now if you are using AjaxToolKit version 1.0.20229 while using ModalPopUp Extender in IE 6.0 it will add huge vertical and horizontal space in IE 6.o User can scroll vertical and horozontal to indefinite.
The solution for this is download the sorce code(DownLoad Source code) and Modify the below file
File Name: ModalPopupBehavior.js
Location : AjaxControlToolkit\ModalPopupExtender\ModalPopupBehavior.js
Function: _layoutBackgroundElement
Please comment out this lines of code only in this function
// Background element needs to cover the visible client area completely hence its
// top and left coordinates need to be 0, and if relatively positioned its getlocation
// value needs to be 0.
// if(this._isIE6) {
// var backgroundLocation = $common.getLocation(this._backgroundElement);
// var backgroundXCoord = backgroundLocation.x;
// if (backgroundXCoord != 0) {
// // offset it by that amount. This is assuming only one level of nesting. If
// // multiple parents with absolute/relative positioning are setup this may not
// // cover the whole background.
// this._backgroundElement.style.left = (-backgroundXCoord) + 'px';
// }
//
// var backgroundYCoord = backgroundLocation.y;
// if (backgroundYCoord != 0) {
// // offset it by that amount. This is assuming only one level of nesting. If
// // multiple parents with absolute/relative positioning are setup this may not
// // cover the whole background.
// this._backgroundElement.style.top = (-backgroundYCoord) + 'px';
// }
After commenting out these lines Rebuild the whole solution and use the newly created dll in your application
Now see the spacing issue should get resolved
Thanks & regards
Sandeep
Now Test AJAX, Javascript using WEBAii + NunitASP
16 years ago