How to control alignment for a widget

Working on a widget and would like to get it to align to top and left side, even if there is not enough content to fill the widget.

When I have a enough content, it looks good, but as in this case, it doesn’t look right.

Is this the normal behavior or I am missing something with alignment?

Something like this is the goal:

What you could do is use spacers to push the content to the left or you could use leftAlignText on the text items.

What does your script look like?

1 Like

Thank you. This seemed to have done the trick. Adding spacers in the right place did the job.

What a great little tool!