Closed HSwift closed 7 months ago
Thanks for contribution!
However, please change commit title to Remove ...
.
Furthermore, do you want to add yourself into Contributor list in README?
It looks like I'm failing to change the commit titile. You may need to squash and merge this PR to change the commit titile.
CI is relevant
By the way, if we change selectCenter != switchCenter
to Math.ceil(selectCenter) != Math.ceil(switchCenter)
, does it work as expected?
Could you help me test it?
It works as expected in my chrome, and their difference is about 0.000009. If you're sure the difference isn't too big, I'd prefer Math.abs(selectCenter-switchCenter) < 0.0001
The postControlWrapped
is used to decide what CSS class should be applied to the VSwitch and VTextarea for aligning them with other components.
If we can fix the re-computation problem, I prefer to keep it.
Therefore, could you solve #44 via keeping postControlWrapped
and using your method to compare selectCenter
and switchCenter
?
Thank you.
CI is relevant.
You can execute yarn lint:fix
to resolve it, and then update this PR.
Fixed #44 in my chrome after removing all postControlWrapped related code