livewire-powergrid icon indicating copy to clipboard operation
livewire-powergrid copied to clipboard

multiselect filter layout

Open jamesRUS52 opened this issue 3 years ago • 5 comments

Multiselect filter make vertical scrolling of table when number of rows too small (less than height of multiselect items)

image

Do you have any ideas how to fix it?

I tried several ways, but no result

jamesRUS52 avatar Mar 10 '22 07:03 jamesRUS52

This is a problem that needs attention. I'll search these days.

luanfreitasdev avatar Mar 11 '22 22:03 luanfreitasdev

I have the same problem how I can fix it??

asosadeq avatar Apr 12 '22 23:04 asosadeq

@luanfreitasdev The problem happens because an absolute div is bigger than the parent div that has the overflow auto, if remove the overflow the absolute div can grow down but will need to refactor your table to have the overflow scroll and the select growing down above the scroller. Another way to fix it is teleporting the select popover to outside the parent with overflow-auto.

image

ph7jack avatar Jul 10 '22 14:07 ph7jack

Hi @PH7-Jack !.

Good observation. Do you think there would be a lot of refactoring in the structure of the tables?

luanfreitasdev avatar Jul 10 '22 23:07 luanfreitasdev

@luanfreitasdev I think so because the parent div contains the overflow-auto. But it's also possible by teleporting the popover to grow outside the table. I'll create a POC for it, we can open the popover outside and set the position to be on the select position. (Hack)

ph7jack avatar Jul 11 '22 01:07 ph7jack

I believe this problem can be closed because it is not possible to do this without using a div. The best solution is to place the selection filter on top of the powergrid component. It is currently possible to change the way filters are displayed to 'outside' in the settings.

luanfreitasdev avatar Dec 24 '22 01:12 luanfreitasdev