I have a jQuery UI dialog when I can delete a row on it like this:

When the row is deleted on my dialog UI, I see a kind of grey border just below my dialog like this:

If I move the mouse hover the page, this grey border disappear but I prefer to do it immediately by code.
I think I need to repaint or refresh the dialog.
Any idea how?
Thanks.
I finally found a solution myself.
Call this code after the height of the dialog changed.