Thursday, July 10, 2008

AjaxToolKit 1.0.20229.0 ModalPopUp Extender IE 6.0 UI issue

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

4 comments:

Rahul Jain said...

Thanks Sandeepya Ur Modal Popup Article Helped Me Thanks Again Hope We Can See More From U :D

Norf182 said...

Excellent...I tried so many answers until I found this one!...I lost one entire day looking this answer...Im really glad!.

Anonymous said...

Hey,

When ever I surf on web I come to this website[url=http://www.weightrapidloss.com/lose-10-pounds-in-2-weeks-quick-weight-loss-tips].[/url]You have really contiributed very good info here sandeepsarticle.blogspot.com. I am sure due to busy scedules we really do not get time to care about our health. In plain english I must warn you that, you are not serious about your health. Research shows that nearly 90% of all USA grownups are either chubby or weighty[url=http://www.weightrapidloss.com/lose-10-pounds-in-2-weeks-quick-weight-loss-tips].[/url] So if you're one of these people, you're not alone. Its true that we all can't be like Brad Pitt, Angelina Jolie, Megan Fox, and have sexy and perfect six pack abs. Now the question is how you are planning to have quick weight loss? [url=http://www.weightrapidloss.com/lose-10-pounds-in-2-weeks-quick-weight-loss-tips]Quick weight loss[/url] is really not as tough as you think. You need to improve some of you daily habbits to achive weight loss in short span of time.

About me: I am author of [url=http://www.weightrapidloss.com/lose-10-pounds-in-2-weeks-quick-weight-loss-tips]Quick weight loss tips[/url]. I am also mentor who can help you lose weight quickly. If you do not want to go under painful training program than you may also try [url=http://www.weightrapidloss.com/acai-berry-for-quick-weight-loss]Acai Berry[/url] or [url=http://www.weightrapidloss.com/colon-cleanse-for-weight-loss]Colon Cleansing[/url] for quick weight loss.

Anonymous said...

Homeopathic medicine is known as a normal kind of healing!
[url=http://www.homeopathicdoctors.org/]homeopathy schools[/url]