Skip to content

Commit

Permalink
added a check in case CSSAtributes() gets fixed and they add back rad…
Browse files Browse the repository at this point in the history
…ius-border property
  • Loading branch information
ellunium committed Oct 14, 2018
1 parent e77002b commit 3ea02ff
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3206,7 +3206,7 @@ SM.extend({

if(css.length > 0 || layer.CSSAttributes().length > 0) {
layerData.css = css;
if(this.is(layer, MSRectangleShape) && !!layer.cornerRadiusString() && layer.cornerRadiusString() != 0){
if(this.is(layer, MSRectangleShape) && !!layer.cornerRadiusString() && layer.cornerRadiusString() != 0 && !/border-radius/.exec(layer.CSSAttributes())){
layerData.css.push('border-radius: ' + layer.cornerRadiusString().replace(/;/g,'px ') + 'px;');
}
}
Expand Down

0 comments on commit 3ea02ff

Please sign in to comment.