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

Third resizable header causes TypeError #1480

Closed
1 of 7 tasks
pekam opened this issue Nov 5, 2018 · 1 comment
Closed
1 of 7 tasks

Third resizable header causes TypeError #1480

pekam opened this issue Nov 5, 2018 · 1 comment
Assignees

Comments

@pekam
Copy link
Contributor

pekam commented Nov 5, 2018

Description

When grid has more than two layers of headers on top of each other, trying to resize columns by dragging from the third or upper layer header throws:

Uncaught TypeError: Cannot read property 'offsetWidth' of undefined
    at HTMLElement._onHeaderTrack (vaadin-grid-combined-mixin.html:407)
    at Object._fire (gestures.html:696)
    at Object._fire (gestures.html:1038)
    at movefn (gestures.html:935)
    at HTMLDocument.upfn (gestures.html:943)

Expected outcome

Can drag to resize on any header

Actual outcome

Dragging on third or upper header causes TypeError and dragging has no effect

Live Demo

https://glitch.com/edit/#!/friendly-hydrogen

Steps to reproduce

  1. Add column-group on top of a column-group on top of a column
  2. Make all columns and column-groups resizable
  3. Try to resize the top-most headers by dragging

Browsers Affected

  • Chrome
  • Firefox
  • Safari
  • Edge
  • IE 11
  • iOS Safari
  • Android Chrome
@pekam pekam changed the title Third resizable column-group causes TypeError Third resizable header causes TypeError Nov 5, 2018
@web-padawan
Copy link
Member

Need to verify if it happens on master also.

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

No branches or pull requests

5 participants