three-spritetext icon indicating copy to clipboard operation
three-spritetext copied to clipboard

What is this black border around the canvas?

Open patrickatkeylogic opened this issue 3 years ago • 1 comments

I'm seeing a black border and I'm not sure what's causing it and can't get rid of it. Seeing it on all browsers I try.

border

Here's my usage:

const label = new SpriteText("Sprite Text", 9);
label.borderColor = "white";
label.padding = 2;
label.borderRadius = 3;
label.backgroundColor = '#214a64';
this.add(label);

patrickatkeylogic avatar Jun 08 '21 15:06 patrickatkeylogic

@patrickatkeylogic thanks for reaching out.

I'm unable to reproduce your case. Could you make a simple example on https://codepen.io/ that shows your case?

Also, are you setting any borderWidth in your code?

vasturiano avatar Jun 08 '21 21:06 vasturiano