Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

QA-15371 - filepicker: When you have a big folder structure and you select a folder, the screen is jumping on the top #1799

Open
jahia-ci opened this issue Nov 13, 2024 · 3 comments

Comments

@jahia-ci
Copy link
Contributor

Imported from Jira, on Thu Jan 30, 2025
Issue: QA-15371 in project: QA DX
Priority: Major Type: Bug
Reporter: @wassek (Werner Assek)
Assignee: None found in Jira, making reporter the assignee in GitHub
Created: Wed Nov 13, 2024, last updated: Tue Jan 28, 2025
Status: Open
Sprint: Customer Backlog started on Thu Jan 1, 1970

Remote Links:

Attachments:

Environment and versions used

8.1.8.1 (jContent 2.17, Content-Editor 4.11)

 

Works well in Jahia 8.2.0.5

Steps to reproduce

Create filefolders that you have to scroll in the picker, you can use a simple script to do it:

JCRNodeWrapper startNode = session.getNode("/sites/digitall/files");
for (int i = 0; i< 40; i<ins></ins>) {

   JCRNodeWrapper newfolder = startNode.addNode("test_" + i, "jnt:folder");
   newfolder.saveSession();

}
 

Current Behavior

When you add content with an image picker (like default image type (with image from document manager), and you open the picker, and scroll down on the left tree. And select a folder, it is jumping back to the top of the tree

Desired Behavior

The tree shouldn't jump back. It should stay on the position you scrolled.

@jahia-ci
Copy link
Contributor Author

Comment by: @jahia-ci (Jahia CI) on Thu Nov 21, 2024 edited

This issue has been triaged and is part of our general bug backlog.

@jahia-ci
Copy link
Contributor Author

Comment by: @romain-pm (Romain Gauthier) on Mon Jan 27, 2025 edited

@wassek (Werner Assek)@fbourasse (Florent BOURASSE) We did some tests, and for us the behavior is expected:

  • Folders are listed first in the list
  • When opening a folder, the first items are displayed (as per any OS or file manager)

Are we missing something? Is the UI scrolling to the top in the left tree or right tree?

@jahia-ci
Copy link
Contributor Author

Comment by: @fbourasse (Florent BOURASSE) on Tue Jan 28, 2025 edited

In Jahia 8.2.0.6, when clicking on a subfolder (folder {}cards{}, in that example), the complete window is not refreshed and we're staying at the same level in the tree view, which is perfect: 2025-01-28_08-35.png

In Jahia 8.1.8.x, with the last version of jContent and Content Editor, when doing the same (folder test_9 in that example), the complete window is refreshed and we're back to the top of the tree view: 2025-01-28_08-40.png

@jahia-ci jahia-ci transferred this issue from another repository Feb 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants