Magento: calendar position in IE

Calendar shows furthur up on the page. It has to show underneath the text filed.

Solution

Go to file js/calendar/calendar.js

Somewhere around line number 1459 spot the lines


if (Calendar.is_ie) {
	br.y += document.body.scrollTop;
	br.x += document.body.scrollLeft;
} else {
	br.y += window.scrollY;
	br.x += window.scrollX;
}

change this to


if (Calendar.is_ie) {
	br.y += document.body.document.documentElement.scrollTop;
        br.x += document.body.document.documentElement.scrollLeft;
} else {
	br.y += window.scrollY;
	br.x += window.scrollX;
}
Advertisements
Magento: calendar position in IE

One thought on “Magento: calendar position in IE

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s