Ovilia opened a new pull request #16203:
URL: https://github.com/apache/echarts/pull/16203


   <!-- Please fill in the following information to help us review your PR more 
efficiently. -->
   
   ## Brief Information
   
   This pull request is in the type of:
   
   - [x] bug fixing
   - [ ] new feature
   - [ ] others
   
   
   
   ### What does this PR do?
   
   <!-- USE ONE SENTENCE TO DESCRIBE WHAT THIS PR DOES. -->
   
   Set width and overflow to textStyle so that text should set to be correct 
width when overflows.
   
   ### Fixed issues
   
   #16189
   
   ## Details
   
   ### Before: What was the problem?
   
   Grid position was not correct because text width is calculated wrong.
   
   
![image](https://user-images.githubusercontent.com/31105752/145193136-fb865a48-afdd-4bd2-b5aa-af013f2e9b86.png)
   
   ### After: How is it fixed in this PR?
   
   Grid position calculated right.
   
   
![image](https://user-images.githubusercontent.com/779050/145531380-ab6dfb4c-4424-46d4-9f59-bfea72772e8c.png)
   
   
   ## Misc
   
   <!-- ADD RELATED ISSUE ID WHEN APPLICABLE -->
   
   - [ ] The API has been changed (apache/echarts-doc#xxx).
   - [ ] This PR depends on ZRender changes (ecomfe/zrender#xxx).
   
   ### Related test cases or examples to use the new APIs
   
   test/bar3.html
   
   
   
   ## Others
   
   ### Merging options
   
   - [ ] Please squash the commits into a single one when merging.
   
   ### Other information
   


-- 
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]

Reply via email to