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

How to set up row height? #53

Closed
masterdany88 opened this issue Apr 20, 2017 · 5 comments
Closed

How to set up row height? #53

masterdany88 opened this issue Apr 20, 2017 · 5 comments

Comments

@masterdany88
Copy link

masterdany88 commented Apr 20, 2017

Using this:
standardTable.setRowHeight(33);
don't change anything.

@kevzlou7979
Copy link
Contributor

Thanks for catching will work on this issue now

@kevzlou7979 kevzlou7979 self-assigned this Apr 25, 2017
@kevzlou7979 kevzlou7979 added this to the 2.0 milestone Apr 25, 2017
@kevzlou7979
Copy link
Contributor

kevzlou7979 commented Apr 25, 2017

Hi upon digging in to the issue, I found out that expectedRowHeight always returns the calculatedRowHeight which is always 55px.

https://github.com/GwtMaterialDesign/gwt-material-table/blob/master/src/main/java/gwt/material/design/client/data/BaseRenderer.java#L82

@kevzlou7979
Copy link
Contributor

@BenDol Any idea, why it seems that the variable expectedRowHeight in BaseRenderer always returns the original value?

@kevzlou7979
Copy link
Contributor

@masterdany88 I found a workaround for the setRowHeight(), for the solution you need to redraw your table to make the row height applied.

        table.setRowHeight(400);
        table.setRedraw(true);
        table.refreshView();

@BenDol Is this required to redraw the table when setting the row height , in order for it to be applied?

@kevzlou7979
Copy link
Contributor

table-row-height

@kevzlou7979 kevzlou7979 removed this from the 2.0 milestone May 1, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants