Corrected a bug causing the modal to behave abnormally with shrinkToFit on long webpages.
Optimised shrinkPadding rendering.
Added informations for future developers who might want to work with this code.