Skip to content

Commit

Permalink
#7171 - Adds missing test for #4303
Browse files Browse the repository at this point in the history
  • Loading branch information
mrpiotr-dev committed Oct 20, 2020
1 parent b68832d commit bc8b081
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions src/plugins/columnSorting/test/columnSorting.e2e.js
Expand Up @@ -2684,4 +2684,29 @@ describe('ColumnSorting', () => {
expect(onErrorSpy).not.toHaveBeenCalled();
});
});

describe('compatibility with options', () => {
it('should not break virtual rendering if preventOverflow is used', async() => {
spec().$container.css({
height: 'auto',
width: 'auto',
overflow: 'visible'
});

handsontable({
data: Handsontable.helper.createSpreadsheetData(100, 1),
columnSorting: true,
preventOverflow: 'horizontal',
});

$(window).scrollTop(3000);

await sleep(500);

const wtSpreader = spec().$container.find('.ht_master .wtSpreader');
const cssTop = parseInt(wtSpreader.css('top'), 10);

expect(cssTop).toBeGreaterThan(0);
});
})
});

0 comments on commit bc8b081

Please sign in to comment.