سؤال

So I made a small mockup up to try angular-strap 1.2+ and are having some trouble with the modal directive.

The modal backdrop displays a vertical scrollbar both while the modal is open and during the fade and scale animations opening and closing the modal. Ie a vertical scrollbar is shown and scaled to the size of the viewscreen and then shrinks down on exit.

Can't seem to find why this is or how I can prevent it.

EDIT: made a plunker

http://plnkr.co/edit/9703j1ZeZsCH2enm6apa?p=preview

هل كانت مفيدة؟

المحلول

Hide the overflow of the background container:

CSS:

.modal {
    overflow: hidden;
}

Updated Plunker

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top