Skip to content

Conversation

@micgro42
Copy link
Contributor

Update to the current upstream Handsontable library (version 0.16.1). We still use the modification from handsontable/handsontable@a20e7ab

This especially means, that we are now using their built-in colum and row moving and cell=merging functionality,

There are still some things to be done/fixed:

  • The merge cells context menu entry needs an icon done in 18e7efa
  • The merge cells context menu entry should have a different string for merging and separating cells done in b905fc5
  • Rows and Columns with merged cells should not be moveable, unless the merge the cells are only merged within the row/column to be moved. done in commit e3b1db0
  • Changing the number of rows/cells in front a merged cell should correctly shift the merged cells, so that they remain in alignment with their original content. See also: Inserting rows/cols doesn't shift cell meta data handsontable/handsontable#1823 done in commit c5dfef9
  • decide what should happen if one row/column with some merged cells is deleted behaviour is mostly as it was before, implemented in 05b6b29

With handsontable 16 comes a new handsontable.full.css. This was renamed
to .less to work with the existing style.less
Handontable stores the information which colmuns have been moved where
in an internal-ish. This internal state can be explicitly set by the
manualColumnMove or manualRowMove option. (see official handsontable
documentation).
We therefore reset this state its default values and directly apply the
meved rows/columns to the data-array.
this.rootElement used to be a jQuery object, but this was changed
upstream.
With a small change to the original so we have a class for every
context-menu entry and hence better styles.
@splitbrain
Copy link
Member

I pushed some pixels for the split/merge icons:
merge
split

@splitbrain
Copy link
Member

Cool that you introduced some frontend tests. I wonder if we could integrate those with travis (via phantomjs)

@splitbrain
Copy link
Member

  • deleted files should be listed in a deleted.files file (see remove deleted files on update of extension dokuwiki/dokuwiki#1240)
  • Merge cells should be disabled when only one cell is selected
  • "Unmerge cells" should be renamed to "Split cells" I think
  • Dragging the autofill marker over the last line adds new rows, dragging it to the right does not add new columns. This should be consistent.
  • Selecting a cell in the last row will make a scroll bar show (for space for the autofill marker). A little padding should fix that.
  • weird second scrollbar on large tables (see customer data)
  • is README.handsontable still true? If not it should be rewritten or removed
  • unused merge* and split* icons should be removed

@splitbrain
Copy link
Member

The styling on the edit button seems to be lost.

Old: 2015-08-17-134021_131x43_scrot

Now: 2015-08-17-134036_110x42_scrot

less/foo.less Outdated
Copy link
Member

Choose a reason for hiding this comment

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

Should this file really be called foo.less?

It is desireable to integrate frontend-javascript unittests with travis
as well. This has been achived mainly by following this guide:
https://jordankasper.com/automated-javascript-tests-using-grunt-phantomjs-and-qunit/
@micgro42
Copy link
Contributor Author

The pull request for the change to 3rd party handsontable in ecf662d is there: handsontable/handsontable#2737

@micgro42
Copy link
Contributor Author

This pull request is also compatible with #54. Both should be mergeable together

splitbrain added a commit that referenced this pull request Aug 18, 2015
@splitbrain splitbrain merged commit bd8d425 into cosmocode:master Aug 18, 2015
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.

2 participants