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

The grid editor doesnt open correctly if an actual editor field component is set. #58

Open
theshoeshiner opened this issue Apr 15, 2020 · 1 comment

Comments

@theshoeshiner
Copy link

theshoeshiner commented Apr 15, 2020

Although the grid editor panel opens fine in the tests, it seems that is only the case because the tests aren't actually setting field components for the editor. If you actually set a component via:

grid.addColumn(Person::getName) .setCaption("Name 1") .setEditorComponent(new TextField(),Person::setName) ;

Then the editor component opens in the wrong location on the first attempt, usually covering the row. See attached screenshot for what happens when opening the top row of a grid with editor components set.

ss

Edit: Subsequent attempts seem to open correctly, for some reason it's only the first attempt that opens in the wrong location.

@Alienmario
Copy link

Alienmario commented May 24, 2023

For a long time I thought this was an issue with vaadin itself.
This is the problematic statement:

.v-grid-tablewrapper {
    overflow: visible;
    position: unset;
    width: 100% !important;
}

You can fix it by adding this to your theme:

.v-grid-tablewrapper {
    position: absolute;
}
.v-grid-scroller {
    z-index: 6;
}

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

No branches or pull requests

2 participants