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

fixes issue #3 #5

Merged
merged 1 commit into from
Jul 23, 2014
Merged

fixes issue #3 #5

merged 1 commit into from
Jul 23, 2014

Conversation

hbrandl
Copy link
Contributor

@hbrandl hbrandl commented Jul 23, 2014

This fixes issue #3.

Earlier code checked on a cell by cell basis if it fits on the page. Now when the first (column 0) cell in a row is evaluated it checks if the whole row fits on the page otherwise breaking to a new page.

I added a function height_with_span to cells.rb which returns the height including any spanned cells if the spanning cell is the master cell.

The height method (cells.rb) is a little misleading. It returns only the height excluding spanned cells.

To ensure the row heights calculation is not run unnecessarily it will only be done on the first (column 0) cell in a row.

hbrandl added a commit that referenced this pull request Jul 23, 2014
@hbrandl hbrandl merged commit 9d3a16a into master Jul 23, 2014
@pointlessone pointlessone deleted the issue_3 branch March 12, 2016 14:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant