Merge pull request #521 from adroitwhiz/text-bubble-edge-fix

Call beginPath on TextBubbleSkin canvas after clearing it with clearRect
This commit is contained in:
DD Liu 2019-11-06 11:29:58 -05:00 committed by GitHub
commit 066b243f04
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -180,6 +180,7 @@ class TextBubbleSkin extends Skin {
}
// Draw the bubble's rounded borders
ctx.beginPath();
ctx.moveTo(BubbleStyle.CORNER_RADIUS, paddedHeight);
ctx.arcTo(0, paddedHeight, 0, paddedHeight - BubbleStyle.CORNER_RADIUS, BubbleStyle.CORNER_RADIUS);
ctx.arcTo(0, 0, paddedWidth, 0, BubbleStyle.CORNER_RADIUS);