Skip to content

Comments

[FIX] side_panel: scroll state issue in chart and pivot side panel#7914

Closed
rmbh-odoo wants to merge 2 commits intosaas-19.1from
saas-19.1-fix-side-panel-tab-save-scroll-state-rmbh
Closed

[FIX] side_panel: scroll state issue in chart and pivot side panel#7914
rmbh-odoo wants to merge 2 commits intosaas-19.1from
saas-19.1-fix-side-panel-tab-save-scroll-state-rmbh

Conversation

@rmbh-odoo
Copy link
Contributor

@rmbh-odoo rmbh-odoo commented Feb 5, 2026

Description:

This PR includes the following fixes:
[FIX] side_panel: restore vertical scrolling for chart side panel tabs
[FIX] side_panel: restore scroll position on pivot tab change

Current behavior before PR:

  • Commit d04cafc accidentally removed overflow-y-auto from the chart side panel content, causing the whole panel to scroll and breaking the sticky tab behavior.
  • In the pivot side panel, the scrollTop value was stored when switching tabs but never reapplied to the DOM.

Desired behavior:

  • Restore overflow-y-auto on the chart side panel content so the tab header stays sticky while the content scrolls.
  • Apply the saved scrollTop value when switching pivot side panel tabs using a useEffect hook.

Task: 5900595

review checklist

  • feature is organized in plugin, or UI components
  • support of duplicate sheet (deep copy)
  • in model/core: ranges are Range object, and can be adapted (adaptRanges)
  • in model/UI: ranges are strings (to show the user)
  • undo-able commands (uses this.history.update)
  • multiuser-able commands (has inverse commands and transformations where needed)
  • new/updated/removed commands are documented
  • exportable in excel
  • translations (_t("qmsdf %s", abc))
  • unit tested
  • clean commented code
  • track breaking changes
  • doc is rebuild (npm run doc)
  • status is correct in Odoo

Before this commit:
- Commit d04cafc accidentally removed 'overflow-y-auto' from the
  chart side panel content.
- This caused the whole panel to scroll instead of keeping the tab
  header sticky.

After this commit:
- Re-added 'overflow-y-auto' on the panel content.
- Tabs remain sticky at the top while the content scrolls correctly.

Task: 5900595
Before this commit:
- When switching tabs in the pivot side panel, the scrollTop value was stored in
  scrollPosition, but never applied to the DOM.

After this commit:
- Added a useEffect hook to apply the saved scrollTop whenever the side panel
  tab changes.

Task: 5900595
@robodoo
Copy link
Collaborator

robodoo commented Feb 5, 2026

Pull request status dashboard

@rrahir
Copy link
Collaborator

rrahir commented Feb 20, 2026

robodoo r+

@robodoo
Copy link
Collaborator

robodoo commented Feb 20, 2026

@rmbh-odoo @rrahir because this PR has multiple commits, I need to know how to merge it:

  • merge to merge directly, using the PR as merge commit message
  • rebase-merge to rebase and merge, using the PR as merge commit message
  • rebase-ff to rebase and fast-forward

@rrahir
Copy link
Collaborator

rrahir commented Feb 20, 2026

robodoo rebase-ff

@robodoo
Copy link
Collaborator

robodoo commented Feb 20, 2026

Merge method set to rebase and fast-forward.

robodoo pushed a commit that referenced this pull request Feb 20, 2026
Before this commit:
- Commit d04cafc accidentally removed 'overflow-y-auto' from the
  chart side panel content.
- This caused the whole panel to scroll instead of keeping the tab
  header sticky.

After this commit:
- Re-added 'overflow-y-auto' on the panel content.
- Tabs remain sticky at the top while the content scrolls correctly.

Task: 5900595
Part-of: #7914
Signed-off-by: Rémi Rahir (rar) <rar@odoo.com>
robodoo pushed a commit that referenced this pull request Feb 20, 2026
Before this commit:
- When switching tabs in the pivot side panel, the scrollTop value was stored in
  scrollPosition, but never applied to the DOM.

After this commit:
- Added a useEffect hook to apply the saved scrollTop whenever the side panel
  tab changes.

closes #7914

Task: 5900595
Signed-off-by: Rémi Rahir (rar) <rar@odoo.com>
@robodoo robodoo closed this Feb 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants