My WrapLayout last row is not visible if it contains one small child
I created a WrapLayout few months back that can have multiple features. I don’t remember If I have copied it from somewhere or I asked ChatGPT or mix of them with my adjustments. But now I have issue with last row, that is not visible if I have a small or smaller views in the last row. The code of my class is given below.