Update room previewer

This commit is contained in:
Bill 2021-04-28 13:57:21 -04:00
parent 315c32bcb5
commit ea27520361
2 changed files with 3 additions and 2 deletions

View File

@ -3,5 +3,5 @@
background-repeat: no-repeat;
background-position: center;
image-rendering: auto;
//height: 100%;
height: 100%;
}

View File

@ -40,7 +40,8 @@ export const RoomPreviewerView: FC<RoomPreviewerViewProps> = props =>
const displayObject = roomPreviewer.getRoomCanvas(width, height);
const renderingCanvas = roomPreviewer.getRenderingCanvas();
elementRef.current.style.height = `${ renderingCanvas.height }px`;
elementRef.current.style.width = `${ width }px`;
elementRef.current.style.height = `${ height }px`;
setRenderingCanvas(renderingCanvas);