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

Improve table layout #185

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

OndrejSpanel
Copy link
Contributor

I would like to improve layouting for tables. In particular I want to be able to use tables so that one row uses all available space not used by the others. At the moment, when I tell table to use 100% of the height, it is always the last table row which get all space not used by previous rows.

Individual rows accept absolute dimensions (px or em), but relative dimensions, like 50% or 100% are ignored.

I guess classes which need adjusting are perhaps TableRowBox and TableCellBox.

Would you give me any hints how can be a task like this acomplished, or if there is something similar done in other areas of Flying Saucer?

In this PR I have added two examples demonstrating the issue, using different ways how to create the tables, both with the same result:

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants