diff --git a/jest.config.js b/jest.config.js index 01b95fb8..c2264d2c 100644 --- a/jest.config.js +++ b/jest.config.js @@ -1,5 +1,5 @@ module.exports = { - preset: process.platform === "darwin" ? "jest-puppeteer-docker" : "jest-puppeteer", + preset: "jest-puppeteer", transform: {}, coverageDirectory: "coverage", }; diff --git a/src/less/container.less b/src/less/container.less index e416f0d0..4b641f84 100644 --- a/src/less/container.less +++ b/src/less/container.less @@ -33,6 +33,7 @@ div.rt-virtual-panel { div.rt-scroll-table-clip { position: sticky; + contain: strict; overflow-anchor: none; width: 100%; height: 100%; diff --git a/test/examples/spreadsheet.test.js b/test/examples/spreadsheet.test.js index 10686f11..067f7195 100644 --- a/test/examples/spreadsheet.test.js +++ b/test/examples/spreadsheet.test.js @@ -167,7 +167,7 @@ describe("spreadsheet.html", () => { for (const td of tds) { cells.push(await page.evaluate((td) => td.innerHTML, td)); } - expect(cells).toEqual(["", "", "", "", "", "Hello, World!"]); + expect(cells).toEqual(["Hello, World!", "", ""]); const ths = await page.$$("regular-table tbody tr:nth-of-type(1) th"); const th = await page.evaluate((th) => th.innerHTML, ths[0]);