Pivot table causing all data-grids with the role of 'wide' to stop functioning correctly #363
Unanswered
NicoNiehaus
asked this question in
Q&A
Replies: 1 comment 3 replies
-
that is annoying. The issue is in the Pivot Form on line 30 anvil-extras/client_code/Pivot/__init__.py Lines 27 to 30 in 6500f9f Without that line the pivot dropdowns wouldn't be visible I get around this in popovers by rendering the popovers onto the document.body element So I don't really have an obvious solution here. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi All, recently started using anvil extras and wow, great job. I've run in to a problem.
I have a couple of data-grids in my app that have many columns (15+) so they are too wide to show on a single screen. I therefore, assign the role of 'wide' to these tables with the role defined in my css as shown below:
This has always worked perfectly, and allows me to scroll horizontally on these large datagrids. However, if I import the following:
Then the role of 'wide' no longer functions correctly. I assume it's because something in the Pivot class messes with the data-grid roles.
I changed the name of the role from 'wide' to 'wide-grid' to see if that could solve the problem, but that didn't help. Anyone else encounter this issue and can perhaps share a solution?
Here is a demo app showing the problem. If you comment out the import Pivot line, then the datagrid functions as I expect it too. However, if you import Pivot, then the scrolling no longer works.
https://anvil.works/build#clone:OXFZWI7JVNQRI2ND=LQGVPXYSAUNJ3PTJSJND2NA7
Thanks, Nico
Beta Was this translation helpful? Give feedback.
All reactions