From d379338cae42dfd9b3f5a7da614ff843ba245dff Mon Sep 17 00:00:00 2001 From: Daniel Hammerschmidt Date: Mon, 15 Sep 2025 19:33:22 +0200 Subject: [PATCH] Use right and bottom in geometry if set zero () (falsy) --- core/rfb.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/rfb.js b/core/rfb.js index 993fe7bd..0328d044 100644 --- a/core/rfb.js +++ b/core/rfb.js @@ -381,9 +381,9 @@ export default class RFB extends EventTargetMixin { get cropRect() { const { width, height, left, right, top, bottom, fbWidth, fbHeight } = this._cropRect; return `${width}x${height}${ - !right ? `+${left}` : `-${right}` + right ?? false ? `+${left}` : `-${right}` }${ - !bottom ? `+${top}` : `-${bottom}` + bottom ?? false ? `+${top}` : `-${bottom}` }${ width === fbWidth && height === fbHeight ? '' : ` (${fbWidth}x${fbHeight})` }`;