I have an issue where a table with a percentage based height won’t scroll in IE11 only, whereas Chrome etc. all work perfectly.
I have tracked the issue down to this function in helpers/dom/element.js …
export function getComputedStyle(element) {
return element.currentStyle || document.defaultView.getComputedStyle(element);
}
I think that the check should be the other way around? As the latter check (getComputedStyle) converts to a pixel based height, where as the former (element.currentStyle) doesn’t and leaves the height responsive. This seems to break the scrolling.
Please can you advise what to do about this issue and whether it can be fixed?
Handsontable uses pixels to scale everything. From the height of a single cell to the whole container. I do not recommend using percentage values and you may end up with a misaligned rows and half-rendered table.
Sorry, no percentage values at all. However you can use native JS methods to get actual height in pixels and return a pixel value that is a part of the viewport height.