To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.
I am seeing what seems like unusual behavior in the GridLayout, where the height of the cell varies depending on the content of the label inside it. See the attached screenshot.
The same code is creating a label as the component inside each cell, using the same style, which is:
margin: 2px 3px;
It seems to be as if the cell renderer sees the space, thinks it may cause a word wrap (though it won't), and adds an extra row of height.
Note I can change the white-space to normal, and it works the way I expect it to. But then it will squeeze out any prepended spaces in the label text, should there be any.