Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Don't clip bg images which don't specify a repeat value

  • Loading branch information...
commit e03ede9191b28f107df16dc157b9eb7e9ab3467c 1 parent a4b8f02
Jason Johnston authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  sources/BackgroundAndBorderRenderer.js
View
2  sources/BackgroundAndBorderRenderer.js
@@ -158,7 +158,7 @@ PIE.BackgroundAndBorderRenderer = (function() {
fill.position = ( pxX / elW ) + ',' + ( pxY / elH );
// Repeating - clip the image shape
- if( repeat !== 'repeat' ) {
+ if( repeat && repeat !== 'repeat' ) {
if( repeat === 'repeat-x' || repeat === 'no-repeat' ) {
clipT = pxY;
clipB = pxY + size.h;
Please sign in to comment.
Something went wrong with that request. Please try again.