Skip to content

Commit d379338

Browse files
committed
Use right and bottom in geometry if set zero () (falsy)
1 parent b9528f1 commit d379338

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/rfb.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -381,9 +381,9 @@ export default class RFB extends EventTargetMixin {
381381
get cropRect() {
382382
const { width, height, left, right, top, bottom, fbWidth, fbHeight } = this._cropRect;
383383
return `${width}x${height}${
384-
!right ? `+${left}` : `-${right}`
384+
right ?? false ? `+${left}` : `-${right}`
385385
}${
386-
!bottom ? `+${top}` : `-${bottom}`
386+
bottom ?? false ? `+${top}` : `-${bottom}`
387387
}${
388388
width === fbWidth && height === fbHeight ? '' : ` (${fbWidth}x${fbHeight})`
389389
}`;

0 commit comments

Comments
 (0)