Skip to content

Commit 9c595dd

Browse files
committed
IE fix for background-position
1 parent 6182715 commit 9c595dd

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/Background.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,8 @@ html2canvas.prototype.backgroundImageUrl = function(src){
105105
*/
106106

107107
html2canvas.prototype.getBackgroundPosition = function(el,bounds,image){
108-
109-
var bgposition = this.getCSS(el,"background-position").split(" "),
108+
var bgpos = this.getCSS(el,"backgroundPosition") || "0 0";
109+
var bgposition = bgpos.split(" "),
110110
top,
111111
left,
112112
percentage;

0 commit comments

Comments
 (0)