You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by GitBox <gi...@apache.org> on 2020/01/12 22:01:55 UTC

[GitHub] [incubator-echarts] 100pah opened a new pull request #12024: feature: support `tooltip.appendToBody`.

100pah opened a new pull request #12024: feature: support `tooltip.appendToBody`.
URL: https://github.com/apache/incubator-echarts/pull/12024
 
 
   
   <!-- Please fill in the following information to help us review your PR more efficiently. -->
   
   ## Brief Information
   
   This pull request is in the type of:
   
   - [ ] bug fixing
   - [x] new feature
   - [ ] others
   
   
   
   ### What does this PR do?
   
   support `tooltip.appendToBody`. 
   Based on the PR ecomfe/zrender#559 .
   
   
   ### Fixed issues
   
   Fix #8049. 
   
   ## Details
   
   The change from #8049: 
   + Add `tooltip.appendToBody` and by default `false` rather than "append to body" by default, otherwise bring a break change.
   + Support the existing features when appended to body for example show tooltip by `dispatchAction`, and do not trigger `globalout` when entering it.
   + Support positioning tooltip on `document.body` with CSS settings like `margin`, `padding` and even `CSS transform`.
   
   ## Usage
   
   ### Are there any API changes?
   
   - [x] The API has been changed.
   
   ```js
   option = {
       tooltip: {
           appendToBody: true, // new option
           ...
       }
   }
   ```
   
   
   ### Related test cases or examples to use the new APIs
   
   `test/tooltip-appendToBody.html`
   
   

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


[GitHub] [incubator-echarts] 100pah merged pull request #12024: feature: support `tooltip.appendToBody`.

Posted by GitBox <gi...@apache.org>.
100pah merged pull request #12024: feature: support `tooltip.appendToBody`.
URL: https://github.com/apache/incubator-echarts/pull/12024
 
 
   

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org