fulmicoton / fattable

Javascript Library to create scrollable table with infinite rows and columns.
MIT License
482 stars 39 forks source link

Minor issue when mouseout function in headerContainer #15

Closed encodedstephen closed 10 years ago

encodedstephen commented 10 years ago

In the ScrollBarProxy eventRegister, line 517 needs to be changed to _this.headerContainer.className instead of _this.headerDragging.className so that it correctly resets the classes on the header container.

Incorrect code pasted below:

eventRegister.bind(this.headerContainer, 'mouseout', function(evt) {
if (_this.headerDragging) {
if ((evt.toElement === null) || (evt.toElement.parentElement.parentElement !== _this.headerContainer)) {
_this.headerDragging.className = "fattable-header-container";
}
return _this.headerDragging = false;
}
});
fulmicoton commented 10 years ago

I think you are right! Thank you very much I will fix this tomorrow!