Use right and bottom in geometry if set zero () (falsy)
This commit is contained in:
parent
b9528f1adb
commit
d379338cae
|
|
@ -381,9 +381,9 @@ export default class RFB extends EventTargetMixin {
|
||||||
get cropRect() {
|
get cropRect() {
|
||||||
const { width, height, left, right, top, bottom, fbWidth, fbHeight } = this._cropRect;
|
const { width, height, left, right, top, bottom, fbWidth, fbHeight } = this._cropRect;
|
||||||
return `${width}x${height}${
|
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})`
|
width === fbWidth && height === fbHeight ? '' : ` (${fbWidth}x${fbHeight})`
|
||||||
}`;
|
}`;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue