Skip to content

Commit

Permalink
Draw notification bubbles flush with bottom of viewport
Browse files Browse the repository at this point in the history
  • Loading branch information
AntumDeluge committed Dec 13, 2023
1 parent e4018e6 commit 1699328
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions srcjs/stendhal/sprite/NotificationBubble.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down

0 comments on commit 1699328

Please sign in to comment.