I am setting the height of a chart through javascript inside html of text item. However, the grid row height remains constant and therefore, sometimes there is too much white space

I want to adjsut row height according to chart height. Please help me

Regards Arif

有帮助吗?

解决方案

You should just leave the height property of the row to blank, it will automatically be adjusted to the size of the content, in your case the height of the chart + your margins/paddings. You should also pay attention if the grid itself has a height defined.

As soon as an element has a dynamic height, most of the time we have to remove "height" properties defined in its containers

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top