# Bug OP-16458 - Opening a work package (full view) on mobile auto-scrolls to the tab row when not desired

Project: OpenProject
Status: closed
URL: https://community.openproject.org/work_packages/OP-16458

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | High |
| Module |  |
| Target versions | 15.3.0 |
| Observed in versions | 15.1.0 |
| Sprint | 15.3.0 |
| Backlog bucket |  |
| Bug found in version (deprecated) | 15.1.x |
| Found in mobile app version |  |
| Follow-up feedback e-mail |  |
| Requires doc change | No |
| Accessibility | No |
| Pull preview |  |
| List |  |
| Labels |  |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable | Behrokh Satarnejad |
| Product manager |  |
| Developers |  |
| Designer | Parimal Satyal |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Planning

| Attribute | Value |
| --- | --- |
| Relevance |  |

## Costs

| Attribute | Value |
| --- | --- |
| Votes |  |
| Work |  |
| Labor costs |  |

## Description

### Steps to reproduce

  - On a mobile device, go to a work package list

  - Touch on a work package to view it

### What is the buggy behavior?

  - When the work package details view is displayed, the page is scrolled to somewhere in the middle of the page instead of at the top of the page

### What is the expected behavior?

  - The page starts at the top, without any vertical scroll
    
      - Regardless of what is appended to the end (`/files`, `/relations`, `/watchers`...).
    
      - The `/activity` default route might be responsible for this behaviour but this should not cause auto-scrolling to the tab bar on mobile (at least until we Primerise the tab section to have a separate 'Overview' tab).

### Note

this also happens on desktop when the browser window is not in full width, as long as the activity shows up at the bottom of the page then this behaviour occurs

### Screenshots and other files

**Mobile view** (using a desktop browser inspector because my [iPhone SE doesn't load Community properly](https://community.openproject.org/projects/openproject/work_packages/60459)):

<img class="image_resized op-uc-image op-uc-image_inline" style="width:331px;" src="/api/v3/attachments/264245/content">

#### Context

This is not a new bug; it has been confirmed also in version 14.x.

### Environment information

**Edge**  
**OpenProject 15.3.0**

Core build: [ae25ab5014866dd31c45525e9bff8b9153538a58](https://github.com/opf/openproject/commits/ae25ab5014866dd31c45525e9bff8b9153538a58)  
Product version [d460de4c2660987bb163452ee93daa55cc758daf](https://github.com/opf/saas-openproject/commits/d460de4c2660987bb163452ee93daa55cc758daf)

**Browser:**  
Firefox, Mac (desktop)

**Language**  
EN
