IE fix for background-position

This commit is contained in:
Niklas von Hertzen 2011-07-18 13:16:55 +03:00
parent 61827150cc
commit 9c595dde0f

View File

@ -105,8 +105,8 @@ html2canvas.prototype.backgroundImageUrl = function(src){
*/
html2canvas.prototype.getBackgroundPosition = function(el,bounds,image){
var bgposition = this.getCSS(el,"background-position").split(" "),
var bgpos = this.getCSS(el,"backgroundPosition") || "0 0";
var bgposition = bgpos.split(" "),
top,
left,
percentage;