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

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);