diff --git a/src/components/InspectorPage/InspectorPage.css b/src/components/InspectorPage/InspectorPage.css index 4c27eb851..c6d467bb3 100644 --- a/src/components/InspectorPage/InspectorPage.css +++ b/src/components/InspectorPage/InspectorPage.css @@ -1,10 +1,11 @@ .InspectorPage { - width: 100%; - height: 100%; + width: 100vw; + height: 100vh; + display: flex; + flex-direction: column; } .InspectorPage iframe { - width: 100%; - height: 100%; + flex: 1; border: none; } diff --git a/src/modules/inspector/utils.ts b/src/modules/inspector/utils.ts index d2fb961a9..73ecdd197 100644 --- a/src/modules/inspector/utils.ts +++ b/src/modules/inspector/utils.ts @@ -6,7 +6,7 @@ import { ComponentData, ComponentType, SceneSDK6 } from 'modules/scene/types' export function getParcels(layout: Layout) { const parcels: { x: number; y: number }[] = [] for (let x = 0; x < layout.rows; x++) { - for (let y = 0; y < layout.rows; y++) { + for (let y = 0; y < layout.cols; y++) { parcels.push({ x, y }) } }