Fix layout problems in generate class result dialog