Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: .manualColumnResizer goes out of position inside scaled parent element #10753

Open
daxas-boop opened this issue Jan 28, 2024 · 1 comment

Comments

@daxas-boop
Copy link

daxas-boop commented Jan 28, 2024

Describe the bug

Issue Encountered

In a React project using @handsotable/react and handsontable, I have run into an issue with the positioning of the .manualColumnResizer element. This happens when the HotTable element is nested within a parent element that has a CSS transform scale applied to it.

Observed Behavior

If a transform scale is applied to a parent element, the left style of the .manualColumnResizer element changes causing it to go out completely of position. It either shifts too far to the left if the scale is less than 1, or too far to the right if the scale is greater than 1.

Expected Behavior

Ideally, the left position of the .manualColumnResizer should remain constant, regardless of any scaling transformations applied to parent elements.

I am not 100% sure if this behavior is intentional, a bug, or if I'm doing something else wrong. If it is intentional, is there a way to override this position change of the .manualColumnResizer element in some way?

Video/Screenshots

image

Provide a link to the demo with the bug reproduction

Code box link

Handsontable version

14.1.0

Framework version

No response

Your environment

Chrome Version 121.0.6167.85 (Official Build) (64-bit), Linux Mint 21.3 Cinnamon

@daxas-boop daxas-boop added the bug label Jan 28, 2024
@adrianszymanski89
Copy link
Contributor

Hi @daxas-boop

Thank you for contacting us. As for now, Handsontable does not support any responsive behavior. Applying scaling to the parent container will cause misalignment issues, for example, the one you experienced.

We have plans to modify the structure of the table elements, but we have yet to set a specific timeline for this project. For the time being, we don't recommend transforming the parent HTML element of the table in any way to avoid that kind of issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants