call .reflow() on the newly shown panel each time