mirror of
https://github.com/billsonnn/nitro-react.git
synced 2024-12-03 18:26:28 +01:00
Update room previewer
This commit is contained in:
parent
315c32bcb5
commit
ea27520361
@ -3,5 +3,5 @@
|
||||
background-repeat: no-repeat;
|
||||
background-position: center;
|
||||
image-rendering: auto;
|
||||
//height: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user