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 2021/08/27 11:59:28 UTC

[GitHub] [echarts] agustinclarity commented on issue #10478: "Can't get dom width or height" incorrectly fires for width/height values of 0.

agustinclarity commented on issue #10478:
URL: https://github.com/apache/echarts/issues/10478#issuecomment-907148670


   Hi there! Guys, I am getting this warning:
   ```
   Can't get DOM width or height. Please check dom.clientWidth and dom.clientHeight. They should not be 0.For example, you may need to call this in the callback of window.onload.
   ```
   And honestly I have tried with pretty much evertyhing:
   
   - Provide chart container with fixed height and width (something like 100px each).
   - Provide chart container with height and width both with `auto` as value.
   - Provide chart container with height and width both with `100%` as value and other respective values like 100vh and 100vw.
   - Provide chart container with height and width directly from CSS.
   
   No luck so far, I am using the latest version of ECharts and its React Wrapper and this is the only warning I was not allowed to clean.
   
   ```
       "echarts": "^5.1.2",
       "echarts-for-react": "^3.0.1",
       "echarts-stat": "^1.2.0",
    ```
   
   Any help would be more than appreciated.
   
   Thanks in advance!


-- 
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: commits-unsubscribe@echarts.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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