Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Fix the height for the IFC viewer page. Otherwise the xeokit viewer will iteratively grow with no limit

Henriette Darged291d722376d
diff --git a/frontend/src/app/features/bim/ifc_models/pages/viewer/styles/generic.sass b/frontend/src/app/features/bim/ifc_models/pages/viewer/styles/generic.sass
index f7424e94585..bcd4ad75b18 100644
--- a/frontend/src/app/features/bim/ifc_models/pages/viewer/styles/generic.sass
+++ b/frontend/src/app/features/bim/ifc_models/pages/viewer/styles/generic.sass
@@ -15,6 +15,11 @@
.controller-bim\/ifc_models\/ifc_viewer
overflow: hidden
+ // Do not remove this, without checking the BCF module.
+ // The container of the xeokit viewer needs a fixed height. Otherwise it will grow without end.
+ #content-body
+ height: calc(100vh - #{var(--header-height)})
+
// Override default behavior to let the viewer be at the top of the table/cards
@media only screen and (max-width: $breakpoint-sm)
@include extended-content--right