[GH #875] Misalignment problem when scrolling the Handsontable with fixed columns

Tags: #<Tag:0x00007efc72fd0028> #<Tag:0x00007efc72fd7e90>

My Handsontable has 2 fixed columns and many rows and columns so that we get horizontal and vertical scrollbars. When I load the page with 100% browser zoom, the table is rendered correctly. But when I zoom out to around 75% or less and use the scrollbar to go to the last row/column, I see that the cells are misaligned. Attached the screenshot.

I am using latest Chrome browser on windows machine. Handsontable-pro version 6.1.1. I am guessing that this issue is only on windows machine.

This issue is reproducible even with the sample Handsontable mentioned on the Handsontable website at https://handsontable.com/docs/7.4.2/demo-fixing.html

P.S: Adding autoRowSize: true does not resolve the issue

Hi @oommen.alex

Could you try to set autoRowSize option to a specific amount?

Here is a link to our docs about this feature - https://handsontable.com/docs/7.4.2/Options.html#autoRowSize

Hi @piotr.nowak Adding autoRowSize does not work. I had already referred to your suggested change in RE: Vertical scrolling with some frozen columns gets misaligned

But the issue still exists even in the jsFiddle demo that you created (https://jsfiddle.net/nma9tgr6/) Refer screenshot attached. I have highlighted the misalignment.

It’s strange because in FF 78.0.2 I can’t reproduce your issue.
Take a look at the screenshot I attached below :
46

What version of FF do you use?

@piotr.nowak I am using the same version of firefox. Attached screenshot below. But looking at your screenshot’s scrollbar styles, I am assuming that you are using a Mac. This issue occurs on a Windows machine due to the space taken up by the browser scrollbar on Windows machine. Also, there should be both vertical and horizontal scrollbars.

Ok. So we know in which environment issue appears.

But for clarifying, do you use zoom?
If so, without zoom issue still is present?

We sometimes use zoom. Without the zoom the issue is not present (or after zoom if we reload the page, the issue does not occur) Occurs only when we zoom after the page/Handsontable has loaded.

Thank you @oommen.alex

I created an issue in GH - https://github.com/handsontable/handsontable/issues/7149

I will surely notify you about the fix is appears.

@piotr.nowak Thanks !

Hello! I just found a solution for my problem: I just put <!DOCTYPE html> at the beginning of the page and misalignment issue gone for me! Hope this helps someone.

Hi @Wingear

Thank you for providing the solution.

1 Like

Any news on this topic ? On some of our tables, we have a misalignment of more than 1 row, which is very error-prone.
Unfortunately, adding <!DOCTYPE html> does not work for us.

Hi @gregoire.spiers

It seems that the last version https://jsfiddle.net/hw85bken/ is still working well, except for the combination of 3 factors

  • Brower zoom applied
  • Firefox browser
  • Windows system

This issue hasn’t been estimated yet.

On this jsfiddle, I have the feeling that it’s still an issue : when I resize the column E to a smaller size, I get this kind of things (using Chrome and no zooming) :

Yes, it is. I am sorry if that sounds like it is not. I was making a note about the environment for tests, as it doesn’t seem to be replicable on Apple devices.

Hello @aleksandra_budnik . I’m using version 12.3.1.Is this solved? If so, do you know the version where this was fixed?

Thanks.

Hi @dsilvgue

This issue is in the backlog. We do not have any updates yet.

I will make sure to notify you once it changes.