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

Grid renders as a horizontal line in Chrome with setSizeFull #1515

Closed
anasmi opened this issue Feb 13, 2019 · 2 comments
Closed

Grid renders as a horizontal line in Chrome with setSizeFull #1515

anasmi opened this issue Feb 13, 2019 · 2 comments
Labels
bug Something isn't working components vaadin-grid

Comments

@anasmi
Copy link
Contributor

anasmi commented Feb 13, 2019

It seems like like this is the original issue: vaadin/vaadin-grid-flow#313 is not resolved for all cases

Code to reproduce:

@Route
public class MainView extends VerticalLayout {

    public MainView() {
        Grid<String> grid = new Grid<>();
        grid.addColumn(s->s);
        grid.setItems("foo");
       grid.setSizeFull();
        add(grid);
    }
}

Grid rendered as horizontal line.

  • Changing to div from VerticalLayout(not the optimal still) fixes the issue
  • Calling setSizeFull on all parent layouts also fixes the problem
@PriyadharshiniBalavadivel

Hi,

The work around of setting the div instead of a VerticalLayout or calling setSizeFull on all parent layouts is not working in Vaadin version 14.1.16. Is there any plan in fixing this issue.

@vaadin-bot vaadin-bot transferred this issue from vaadin/vaadin-grid-flow Oct 6, 2020
@vaadin-bot vaadin-bot transferred this issue from vaadin/vaadin-grid May 19, 2021
@vaadin-bot vaadin-bot transferred this issue from vaadin/web-components May 21, 2021
@vaadin-bot vaadin-bot added bug Something isn't working components vaadin-grid labels May 21, 2021
@sissbruecker
Copy link
Contributor

Since 24.6 grids have a default min height to make it more obvious that there is a layout issue. Closing as dupe of vaadin/web-components#4584

@sissbruecker sissbruecker closed this as not planned Won't fix, can't repro, duplicate, stale Dec 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working components vaadin-grid
Projects
None yet
Development

No branches or pull requests

4 participants