mirror of
https://github.com/opf/openproject.git
synced 2026-06-14 03:30:14 +00:00
Bug/59281 split screen activity tab does not scroll to the right position from list view (#17210)
https://community.openproject.org/work_packages/59281
This commit is contained in:
+5
-1
@@ -398,7 +398,7 @@ export default class IndexController extends Controller {
|
||||
}
|
||||
|
||||
private getScrollableContainer():HTMLElement | null {
|
||||
if (this.isWithinNotificationCenter()) {
|
||||
if (this.isWithinNotificationCenter() || this.isWithinSplitScreen()) {
|
||||
// valid for both mobile and desktop
|
||||
return document.querySelector('.work-package-details-tab') as HTMLElement;
|
||||
}
|
||||
@@ -419,6 +419,10 @@ export default class IndexController extends Controller {
|
||||
return window.location.pathname.includes(this.notificationCenterPathNameValue);
|
||||
}
|
||||
|
||||
private isWithinSplitScreen():boolean {
|
||||
return window.location.pathname.includes('work_packages/details');
|
||||
}
|
||||
|
||||
private addEventListenersToCkEditorInstance() {
|
||||
this.onSubmitBound = () => { void this.onSubmit(); };
|
||||
this.adjustMarginBound = () => { void this.adjustJournalContainerMargin(); };
|
||||
|
||||
Reference in New Issue
Block a user