-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
VirtualScroll Qtable is scrolled one unit when using QMenu in "Body" Slot #15598
Comments
Seems to be related to #14450, but this happens when the QTable gets focus. |
I'm not sure there is something automatic that can be done (looking into it) But it can be fixed in CSS (add |
Okay I'll do that. Thanks! |
…behind sticky tow on focus quasarframework#15598
…behind sticky tow on focus quasarframework#15598
…behind sticky tow on focus quasarframework#15598
Please keep this open until i can check if something automatic can be done |
I'm working on a QTable virtual scroll issue atm, and going through all the open tickets. Just to note, in case it's important, I only see this specific problem in Chrome (116) and not in Firefox (113), both on Windows. |
I work on Mac, And it also happens in Chrome and in Safari. Also recently I found out, that if table is bigger than window height, it scrolls one row up under the TH, and also the entire table is scrolled upwards too. I had a similar problem only happening in safari where I had a dialog container hidden on the bottom of the page, and when using context menu inside table. Also scrolled the q-layout under q-header. Removing that dialog container solved the problem, but it was in "position: Absolute" So it should not be interpreted as it was using screen space. Even Inspecting the browser showed that the layout was not reaching the bottom of the page, and nothing was occupying that space. |
What happened?
I have a long QTable with virtual scroll enabled, and each row has some options set in a QMenu component inside "Body" Slot.
So When on the top of the table, user click on right mouse button to open the menu, and then click on an option, the table rows are scrolled, 1 row unit, to the top, so the first row gets under the header of the table.
I tested it, and the problem is the virtual-table option, without it the bug won't reproduce.
What did you expect to happen?
To not scroll automatically one row.
Reproduction URL
https://codepen.io/RamonDonadeu/pen/wvEYvZq?editors=111
How to reproduce?
1.- Go to providen link
2.- Make sure you are on the top of the table.
3.- Right click in any row of the table
4.- Then you can reproduce it with diferent actions:
4.1- Click on an option of the menu, in this case 'Test'
4.2- Left click again the same row
4.3- Right click in the same row.
Now the Table should have scrolled up one row.
The issue is not reproduced if you right click to open the menu, and then click on any other row different than the clicked before.
Or, if you are not at the top of the table.
Flavour
Quasar CLI with Vite (@quasar/cli | @quasar/app-vite)
Areas
Components (quasar)
Platforms/Browsers
Chrome, Brave
Safari
Not tested in Firefox but I suppose it will be te same
Quasar info output
Relevant log output
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: