From 1699328c3a142bf847f4863a065cd69d09fb59b2 Mon Sep 17 00:00:00 2001 From: Jordan Irwin Date: Tue, 12 Dec 2023 16:54:15 -0800 Subject: [PATCH] Draw notification bubbles flush with bottom of viewport https://github.com/arianne/stendhal/issues/254 --- srcjs/stendhal/sprite/NotificationBubble.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/srcjs/stendhal/sprite/NotificationBubble.ts b/srcjs/stendhal/sprite/NotificationBubble.ts index 0680333d08f..cb446dd4ff1 100644 --- a/srcjs/stendhal/sprite/NotificationBubble.ts +++ b/srcjs/stendhal/sprite/NotificationBubble.ts @@ -91,8 +91,8 @@ export class NotificationBubble extends TextBubble { this.height = lcount * lheight; } this.x = screenCenterX - (this.width / 2); - // FIXME: doesn't reach bottom of game window - this.y = screenBottom - this.height; + // Note: border is 1 pixel + this.y = screenBottom - this.height + TextBubble.adjustY - 1; ctx.lineWidth = 2; ctx.font = fontsize + "px sans-serif";