Skip to content
This repository has been archived by the owner on Apr 20, 2023. It is now read-only.

Commit

Permalink
Prevent rendering of border when border-widths are zero but border-st…
Browse files Browse the repository at this point in the history
…yle is not "none".
  • Loading branch information
Jason Johnston committed Jul 3, 2010
1 parent e6f4ece commit 951e3db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sources/BorderStyleInfo.js
Expand Up @@ -45,7 +45,7 @@ PIE.BorderStyleInfo = PIE.StyleInfoBase.newStyleInfo( {
c[ ltr ] = new PIE.Color( color );

width = w[ ltr ] = new PIE.Length( s[ ltr ] === 'none' ? '0' : ( this.namedWidths[ width ] || width ) );
if( s[ ltr ] !== 'none' || width.pixels( this.element ) > 0 ) {
if( width.pixels( this.element ) > 0 ) {
active = true;
}
}
Expand Down

0 comments on commit 951e3db

Please sign in to comment.