Skip to content

Commit

Permalink
Remove "px" from computed style in fallback calc
Browse files Browse the repository at this point in the history
  • Loading branch information
stianlik committed Nov 20, 2012
1 parent a6f7134 commit 4d005a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion swipe.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ Swipe.prototype = {

// Fix width for Android WebView (i.e. PhoneGap)
if (this.width === 0 && typeof window.getComputedStyle === 'function') {
this.width = window.getComputedStyle(this.container, null).width;
this.width = window.getComputedStyle(this.container, null).width.replace('px','');
}

// return immediately if measurement fails
Expand Down

0 comments on commit 4d005a0

Please sign in to comment.