-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
add auto fit columns function #1386
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your contribution, I've left some comments.
Little suggestion for you guys: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have added some new comments, but there is some feedback in the previous review still not resolved.
I rewrite the function to calculate length of sbcs and mbcs. |
} | ||
} | ||
|
||
// The ratio of 1.123 is the best approximation I tried my best to |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can't fix the character width, which also related to the font family and font size style, we need to consider this factor.
Has this pull request not been merged into master yet? |
There are some code review issues still not resolved. We need to resolve these issues before merging it into the master branch. |
What's missing for this PR to be merged? All conversations on the "Files" tab seem to be resolved (although idk if truly accepted). If there's still logic pending for review, broken or missing, I might be able to help. |
need this feature. any updates |
Hi @yyt030, @n3m, @edwardmatutino, the character width is related to the font family and font size style, we need to calculate column width by font size. I have marked the unresolved comments in the code review conversion. In addition, there's a code conflict in this pull request, we need to resolve this for merging this, and before that please also reference the code in issues #92 and #204. |
79958aa
to
0c3dfb1
Compare
Is this feature available now? |
Not available. The code review issues as I mentioned above should be fixed. |
PR Details
add auto fit columns function
Description
add auto fit columns function
Related Issue
#92
Motivation and Context
How Has This Been Tested
Types of changes
Checklist