-
-
Notifications
You must be signed in to change notification settings - Fork 126
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
Table content cut off on new page #205
Comments
hi there, this is actually on purpose, this feature is inspired by Apple Pages. |
Yes, a break would work better in my case. How can I set it to break? Thank you |
as of now this is not built-in (anymore) as I didn't have a use-case in combination with merged cells. So how should it work with merged cells, move all rows with cut off cells to a new page? This is the current sample in the "experiment" example, if you want to check it out yourself. Also can you provide me an example for reproducing your use case, so I can use it as a reference? |
WIP is on branch |
@StefaniOSApps this is looks like a bug, so this needs to be investigated for sure, looks like the content height is not correct. Let me give you an insight why I changed the table behavior in 2.X.X: First I wanted merged cells, but therefore I wanted to provide a easier table access, which should also be more Swift(y). That's why I added the subscript mechanism for content/alignment management and also the Now merging cells is actually pretty straight forward:
Now I had one design issue to face: How to deal with merged cells at the page end? But now how should we handle the case when a single cell can span multiple rows? As Apple Pages has always been a reference to me, I decided to "break" table cut off at page end, and duplicate the last cells and mask it away, just like Pages does. That's the behavior you can currently see. We can adapt the algorithm as we desire, but the behavior should be determined before hand. Anyway, thank you for starting this discussion! |
The same case, @albanotmakolli @philprime . Maybe there can be a bool config for choose to add break or left to cut off. Only cut off with text content is strange for end users. |
@philprime, I tried you feature/205 branch and it fixed my issue with cut table cell. Super! When you say "I am now looking into #205, which is the same use case but with headers on every page.", do you mean you will also fix the issue where the table header on the second page hides the first table cells? |
I am releasing the current progress so we can have smaller iterations fixing the table implementation. As mentioned in #246, table headers on every page are still struggling, but the cut-off should be disabled now |
* Added support for omitting first sliced cells * Added page breaking without table cell slicing * Added macOS support to tests * Fixed test cases per OS
Alright this has been merged and released in 2.3.2 |
When the content of a cell spans to another page the text is cutoff on the first and then the rest of it is rendered on the second page.
The text was updated successfully, but these errors were encountered: