change getBoundingClientRect from offsetwidth#73
change getBoundingClientRect from offsetwidth#73NaokiFujikawa wants to merge 1 commit intowubostc:masterfrom
Conversation
change offsetHeight to BoundingClientRect().height
|
@NaokiFujikawa |
can you put some examples on https://codesandbox.io which can show the differences that you said. |
|
Thank you for your interest. This is caused by changing the display settings When the display setting is 100%, there is no problem. But it occurs when you set it to 125%. The scroll bar will be active. |
|
this commit has a big problem... |
|
the main problem at present is that there is no way to set a floating-number for css... |
|
Thank you for checking. I see. I'm fine in my use, but I didn't think about PR. |




"offsetwidth" is round the value to an intege. So I want you to use "getBoundingClientRect".
https://developer.mozilla.org/ja/docs/Web/API/Element/getBoundingClientRect
The same thing happens with the issue below in the scroll view.
ant-design/ant-design#25300 (comment)