acecream
Posts: 4
Joined: Wed Nov 19, 2008 10:25 am

IE 1px width issue fix

If someone else is facing an issue where iframe popup has 1px less width then in other browser (which have correct width) then this is the fix:

Code: Select all

// IE 1px fix
hs.Expander.prototype.onAfterExpand = function(sender, e) {
	if ($.browser.msie) {
		var width = parseInt(sender.iframe.style.width);
		sender.iframe.style.width = (width + 1) + 'px';
	}
}
Since i use jQuery i did browser detection with $.browser.msie which can be easly replaced with functionality from other framework or pure javascript.
But ofcourse it would be best if Highslide core fixes this problem.

Return to “Highslide JS Usage”