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

Add a plugin for column-resizing #11

Merged
merged 5 commits into from
Oct 5, 2017
Merged

Add a plugin for column-resizing #11

merged 5 commits into from
Oct 5, 2017

Conversation

marijnh
Copy link
Member

@marijnh marijnh commented Sep 22, 2017

This pull request does several things:

  • It add an attribute colwidth to table cells, which stores the width of the columns that the cell if part of. Each column can have either no fixed with or a width in pixels.

    I ended up storing this on the cells instead of the table because it makes it easier to make sure that a given width 'sticks' to the right column when the table is modified, and when cells are moved around. The table-fixing code makes sure column widths stay coherent by adjusting widths in the same column to the width of the majority of that column

  • It introduces a new plugin columnResizing which implements a table view that renders and updates <col> tags for tables to specify the column widths, and functionality for resize handles on column boundaries.

(I ended up including the patch from #10 in this because untangling it caused some conflicts. If that one is rejected, I'll update this branch to remove it.)

And preserve it when modifying colspan
That takes care of populating and updating the <col> tags and the
table's min width.
Move table node view into columnResizing plugin
@marijnh
Copy link
Member Author

marijnh commented Sep 25, 2017

(Updated to no longer include c3c448e, which was merged into master.)

@eshvedai eshvedai merged commit 81e3d97 into master Oct 5, 2017
@eshvedai
Copy link
Collaborator

eshvedai commented Oct 5, 2017

Awesome work, thanks!

There are a few issues related to resizing: #13 #14 #15

@torifat torifat deleted the colwidth branch July 30, 2020 13:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants