setContentSize bug on Safari

Hello

I found a bug on cc.Sprite with setContentSize. With Chrome works fine, with Safari doesn’t work.

This is the code I use with an image of 1x40px and canvas of 320x480

@
var background = cc.Sprite.create(“image.png”);
var totalSize = cc.size(winSize().width, 40);
background.setScaleX(winSize().width/background.getContentSize().width);
background.setScaleY(40/background.getContentSize().height);

background.setContentSize(totalSize); //<— This code doesn’t work on safari, uncommend and you will see the bar on the top

background.setAnchorPoint(cc.p(0, 0));
background.setPosition(0, 0);
this.addChild(background);
@