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

Problem with GridLayout Component #59

Open
kemblekaran opened this issue Jun 20, 2018 · 2 comments
Open

Problem with GridLayout Component #59

kemblekaran opened this issue Jun 20, 2018 · 2 comments

Comments

@kemblekaran
Copy link

When GridLayout component with columns and rows added into the ResponsiveColumn it,some components start to move off the screen.

Code :
`ResponsiveLayout responsiveLayout = new ResponsiveLayout();
GridLayout lPersonalAccount = new GridLayout(3, 3);
responsiveLayout.setSizeFull();
responsiveLayout.setStyleName("border");
ResponsiveRow rootRow = responsiveLayout.addRow();
rootRow.setHeight("100%");

    ResponsiveColumn firstColumn = new ResponsiveColumn(12, 6, 4, 4);
    rootRow.addColumn(firstColumn);

    ResponsiveColumn secondColumn = rootRow.addColumn().withDisplayRules(12, 6, 4, 4);

    ResponsiveRow personalRow = new ResponsiveRow();
    ResponsiveColumn personalContent = new ResponsiveColumn(12);
    personalContent.setComponent(lPersonalAccount);

    personalRow.addColumn(personalContent);

    firstColumn.setComponent(personalRow);

    masterLayout.addComponent(responsiveLayout);`
@JarekToro
Copy link
Owner

You might want to set the grid component to 100% width. However you might also want to look at the 100%height. CSS height is weird and can throw things off if not set up right. But I would have to see a picture of the problem before I could notice anything.

@kemblekaran
Copy link
Author

It's start to move off the screen whenever I set GridLayout's columns and rows and If I don't do that it works just fine.

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