Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • G gitlabhq1
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 21
    • Issues 21
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 12
    • Merge requests 12
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • gpt
  • large_projects
  • gitlabhq1
  • Issues
  • #7608

Closed
Open
Created Aug 26, 2014 by Administrator@rootOwner

[UI] Maintain page height on merge request Discussion Changes tab switch on first load.

Created by: cirosantilli

  1. Open /namespace/project/merge_requests/1
  2. Move "Discussion" to the middle of the screen height
  3. Click "Changes"

Expected outcome: either of:

  1. "Discussion" and "Changes" are at the same height as before
  2. they are at the top of the page (if there is enough content to show)

Actual outcome: "Discussion" is at the bottom of the page: we got moved to the top.

Why it happens: on the first change to "Changes", it gets Ajax loaded, "Discussion" tab contents get replaced by the loader image which is very small, and that forces the page to go up because there is not enough content to show.

The bug is made worse by the fact that this only happens on the first tab load: when the tab is loaded the small loader does not appear, and heights don't change anymore, so it feels inconsistent.

If we chose expected solution 2., it suffices to add one ID to the div that holds all the tabs and link to it.

Assignee
Assign to
Time tracking