Skip to content

Table - outside page (bug) and auto-fit (feature request) #202

@hidegh

Description

@hidegh

Describe the bug

  1. Table is rendered outside the margins/page - see: Table or another list inside a list (list item) breaks the DOCX output (HTML is fine) #192 (comment) - when the table in word is selected and fit content / window is applied - all is OK.
  2. The left alignment of the table does not considers list-item hanging (indent)

Expected behavior

  1. by def. table should fit to window
  2. and also be in-line with other list-item content

NOTES:

  1. possibility to add some name to the table and then to reference them via code and call either or both auto fit to window/content.
  2. IMO even better: If the table has specific classes, like: h2o-table-fit-window or h2o-table-fit-content then similar adjustment could be made

In general altering behaviour via classes for multiple purposes could be great, e.g.

  • even if inside list-items
    • ability to pull the content to the full page width
    • pulling table out (ignoring list item extra indent/hanging
    • etc.

Repro
I guess the HML provided earlier, with adding a lot of text to the table will generate similar behavior.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions