Java Ninja Chronicles By Norris Shelton

Things I learned in the pursuit of code

IE8 displaying Jquery dialog with scroll bars

This was happening only on IE8 (native and CoRD). It was working correctly on Chrome and Firefox.

The solution is to call .height(‘auto’) after the dialog is created.

                    $(document).ready(function() {
                        $('#phoneDataButton').click(function() {
                            $('#phoneDataSearchForm').dialog({
                                modal:true,
                                width: 700,
                                close: function() {
                                    $('#phoneSearchResults').html("");
                                    location.reload(true);
                                }
                            }).height('auto')
                        })
                    })

October 7th, 2011

Posted In: javascript, JQuery

Tags: , ,

Leave a Comment

LinkedIn Auto Publish Powered By : XYZScripts.com