We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 32da143 commit 0744e75Copy full SHA for 0744e75
1 file changed
packages/common/src/services/resizer.service.ts
@@ -404,6 +404,11 @@ export class ResizerService {
404
this.resizeColumnsByCellContent(false);
405
}
406
407
+ // patch for Chromium browsers to avoid scrollbar from showing way too early when using `overflow:auto`
408
+ // the canvas size equals exactly the size of its container and for some users (not all) it will show the horizontal scrollbar too early.
409
+ // not exactly sure but, this might be caused by a floating precision on some computers
410
+ this._gridDomElm.style.width = typeof newWidth === 'string' ? newWidth : `${(newWidth || 1) + 0.2}px`;
411
+
412
// keep last resized dimensions & resolve them to the Promise
413
this._lastDimensions = {
414
height: newHeight || 0,
0 commit comments