diff --git a/plugins/remote-desktop/src/frontend/GuacamoleDisplay.tsx b/plugins/remote-desktop/src/frontend/GuacamoleDisplay.tsx index 8dd3fed61..65f9b0635 100644 --- a/plugins/remote-desktop/src/frontend/GuacamoleDisplay.tsx +++ b/plugins/remote-desktop/src/frontend/GuacamoleDisplay.tsx @@ -176,8 +176,8 @@ export const GuacamoleDisplay = forwardRef< const scale = fitScaleRef.current * zoom; scaleRef.current = scale; display.scale(scale); - displayRef.current.style.width = `${display.getWidth() * scale}px`; - displayRef.current.style.height = `${display.getHeight() * scale}px`; + displayRef.current.style.width = `${Math.floor(display.getWidth() * scale)}px`; + displayRef.current.style.height = `${Math.floor(display.getHeight() * scale)}px`; } onZoomChange?.(zoom); return zoom; @@ -904,7 +904,7 @@ export const GuacamoleDisplay = forwardRef< >