Fixing a modal padding problem.

Fixing a problem:

If the page has a padding-right: 100px; initially for example, after opening and closing a modal dialog, this value will be wiped.
Do the `hide` call in a callback for the `shown.bs.modal` event.