You are probably right. I will try make this work by first checking all the size hints of all items in a row and then moving items with smaller size hint heights. Thanks for the help.