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

fixed bottom detection for md viewports

Jonas Jabari9521a2cbfada
diff --git a/frontend/src/stimulus/controllers/dynamic/work-packages/activities-tab/index.controller.ts b/frontend/src/stimulus/controllers/dynamic/work-packages/activities-tab/index.controller.ts
index b73667e7e6c..62f7df39425 100644
--- a/frontend/src/stimulus/controllers/dynamic/work-packages/activities-tab/index.controller.ts
+++ b/frontend/src/stimulus/controllers/dynamic/work-packages/activities-tab/index.controller.ts
@@ -262,7 +262,7 @@ export default class IndexController extends Controller {
if (this.isSmViewPort()) {
atBottom = (window.scrollY + window.outerHeight) >= document.body.scrollHeight;
} else if (this.isMdViewPort()) {
- const scrollableContainer = document.querySelector('#content') as HTMLElement;
+ const scrollableContainer = document.querySelector('#content-body') as HTMLElement;
atBottom = (scrollableContainer.scrollTop + scrollableContainer.clientHeight + 10) >= scrollableContainer.scrollHeight;
} else {