Wrong size and content of dialog after second show()

I extended DialogWrapper to create status dialog.

after this code executes, I see dialog in right Size and with right content. Than I do

It disappears. Now, if I try to show it again,

dialog appears in wrong size and has nothing inside. I am forced to recreate this dialog newly ever again.

Is there any possibility to avoid that? Thanks!


Please sign in to leave a comment.