Skip to content
This repository has been archived by the owner on Jun 26, 2020. It is now read-only.

I/6437: Fix - the table breaks after removing a last header row #301

Merged
merged 15 commits into from
Apr 17, 2020
Merged

Conversation

jodator
Copy link
Contributor

@jodator jodator commented Apr 8, 2020

Suggested merge commit message (convention)

Fix: Removing the last header row no longer breaks the table in the editing view. Closes ckeditor/ckeditor5#6437.


Additional information

The actual fix is in 242a2e0 commit. It turned out that the tests weren't written in the same way as row removing is implemented (df80eec). Removing row from a header section involves changing headingRows attribute on a table.

The rest of the changes in tests was done due to ckeditor/ckeditor5#6574.

Using full markup in tests without helper functions acts as documentation for this part of table conversion.
This change reflects how the code is used by commands.
…bute will now properly clean empty table sections.
@coveralls
Copy link

coveralls commented Apr 8, 2020

Coverage Status

Coverage remained the same at 100.0% when pulling 1929801 on i/6437 into 0ac0432 on master.

@Reinmar
Copy link
Member

Reinmar commented Apr 14, 2020

The fix doesn't work for me. There is no tbody in the view when I remove the row.

Copy link
Member

@Reinmar Reinmar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As commented.

@jodator
Copy link
Contributor Author

jodator commented Apr 15, 2020

@Reinmar So after some digging up I ended up in fixing another set of tests (refs ckeditor/ckeditor5#6574). Apart of that I've also added removing empty table sections when down casting headings rows change.

@jodator
Copy link
Contributor Author

jodator commented Apr 17, 2020

@Reinmar the current PR is probably the last one for row headings + removing rows problems. Any change of this code will blows something different and the longer explanation is here: ckeditor/ckeditor5#6630.

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

Successfully merging this pull request may close these issues.

The table breaks after removing a last header row
3 participants