My favorites | Sign in
Project Home Downloads Issues
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions
Issue 579: Add overflow:hidden to html or body, before nm open modal box
2 people starred this issue and may be notified of changes. Back to list
Status:  New
Owner:  ----


 
Reported by ildrago....@gmail.com, Nov 10, 2011
Hi, as I say in summary, is there a way to add css property at body or html tag to prevent scrolling page when a modal box open to pop up?
Many thanks, and have a nice day!
Nov 10, 2011
#1 ildrago....@gmail.com
Well, after some search and few attempts i solved adding a callback:
[code]
    <script type="text/javascript">
        $(function () {
            $("[data-gal^='nyromodal']").nm({
                callbacks: {
                    beforeShowCont: function (nm) {
                        $('body').css('overflow', 'hidden');
                    }
                }
            });
        });
    </script>
[/code]
Maybe I hope it will be usefull.
Bye! :)
Apr 24, 2014
#2 ben.bibi...@gmail.com
This is exectaly what I've been looking for, but unfortunately this is not working.  
Any ideas why?
Sep 22, 2014
#3 beardybr...@gmail.com
The above fix worked for me, thanks!  I was getting complaints about a double scroll bar when making the dialog very small.  The above cleared it up.

Powered by Google Project Hosting