Forum Discussion
tomascvm
9 years agoNew Member
Power BI - Cannot set height
I am trying to develop custom visual for Power BI. I have div element with leaflet map. When I do not set a height, visual is emplty. I can set a height with this.mapDiv.style.height="300px"; B...
- 9 years ago
You need to add the length unit.
this.mapDiv.style.height = options.viewport.height.toString() + "px";
v-chuncz-msft
9 years agoCommunity Support
You need to add the length unit.
this.mapDiv.style.height = options.viewport.height.toString() + "px";