How to adjust width and height of a gojs picture as per text next to it?

Hi there,

Im using gojs Picture to render image and textBlock to render text next to the image like below one.

In the below image height and width of icons are 20X20 and font of the textblock is 10px.
image

And In the below image height and width of icons are 20X20 but font of the textblock is 30px.
image

But is there a way to set whatever height my text has can be given to icons before the text?

Could you please explain what you want in more detail? Perhaps more examples with explanation, and perhaps some examples of what you don’t want.

Perhaps you want to put the Picture and TextBlock in a “Table” Panel and have the Picture stretch vertically.

Ok Walter thanks for the response. I will try that way.