madhushreeag commented on PR #43811:
URL: https://github.com/apache/superset/pull/43811#issuecomment-5529147198
The issue seems to be because of sub-pixel rounding, so this issue is
visible only when it is rounded down (280.31 pixel to 280 pixel) and not when
rounded up. Can we do something like this instead of hardcoding?
```
const measureWidth = (element: HTMLElement) =>
Math.ceil(element.getBoundingClientRect().width);
```
and apply them to ```offsetWidth``` like
```setInputWidth(measureWidth(sizerRef.current));```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]