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/10/12 06:28:42 UTC

[GitHub] [echarts] isosky opened a new issue #15863: 5.2.1中map获取不到div的宽度

isosky opened a new issue #15863:
URL: https://github.com/apache/echarts/issues/15863


   ### Version
   5.2.1
   
   ### Steps to reproduce
   git@github.com:licong-site/vue-echarts-bmap-demo.git
   
   在这个项目基础上:
   npm install echarts@5.2.1  --save
   在Map.vue中增加width
   .map {
     width: 500px;
     height: 700px;
   }
   
   ### What is expected?
   在4.9版本中效果div的宽度为500px,map渲染的大小为500px。
   
   ### What is actually happening?
   编译后查看后,5.2.1为div大小确实为500px,map渲染的还是整个页面上的大小。
   
   <!-- This issue is generated by echarts-issue-helper. DO NOT REMOVE -->
   <!-- This issue is in English. DO NOT REMOVE -->


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


[GitHub] [echarts] plainheart commented on issue #15863: 5.2.1中map获取不到div的宽度

Posted by GitBox <gi...@apache.org>.
plainheart commented on issue #15863:
URL: https://github.com/apache/echarts/issues/15863#issuecomment-940717581


   需要给容器指定 `position: relative;`


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


[GitHub] [echarts] isosky commented on issue #15863: 5.2.1中map获取不到div的宽度

Posted by GitBox <gi...@apache.org>.
isosky commented on issue #15863:
URL: https://github.com/apache/echarts/issues/15863#issuecomment-940731171


   加上  position: relative;可以解决,谢谢。


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


[GitHub] [echarts] echarts-bot[bot] commented on issue #15863: 5.2.1中map获取不到div的宽度

Posted by GitBox <gi...@apache.org>.
echarts-bot[bot] commented on issue #15863:
URL: https://github.com/apache/echarts/issues/15863#issuecomment-940704930






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


[GitHub] [echarts] isosky closed issue #15863: 5.2.1中map获取不到div的宽度

Posted by GitBox <gi...@apache.org>.
isosky closed issue #15863:
URL: https://github.com/apache/echarts/issues/15863


   


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