1

I'm using AngularJs and ngModal plugin (https://github.com/adamalbrecht/ngModal) in my project. When the Modal is shown, it disables the browser scroll bar. How do I enable it in the instance it is shown?

My html code is below:

html

<body ng-controller="MyMgtCtrl">
    <div class="container-fluid" >
        <div class="section">{{gapSection.headerID}}.{{gapSection.sectionID}}</div>
        <label ng-click="showMenu()" class="label label-primary">Toggle</label>

        <modal-dialog show='data.showMenu' class="showMenuStyle">
          <p>SOMETHING GOES HERE</p>
        </modal-dialog>

    </div><!-- /.container -->

</body>

1 Answer 1

1

In the ng-modal plugin there was a property:

document.getElementsByTagName("body")[0].style.overflow = "hidden"

I set to "hidden" to "" and the scroll bars were present

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.